diff --git a/src/tools/stuffextract/StuffExtract.cpp b/src/tools/stuffextract/StuffExtract.cpp index 84bb3c3..bd7b9a4 100644 --- a/src/tools/stuffextract/StuffExtract.cpp +++ b/src/tools/stuffextract/StuffExtract.cpp @@ -38,7 +38,7 @@ int main(int argc, char *argv[]) memcpy(loc,input,4); loc[4]=0; SetLocale(loc); } - if(FileExists(std::string("Data/")+GetLocale()+"/locale-"+GetLocale()+".MPQ")) + if(GetLocale() && FileExists(std::string("Data/")+GetLocale()+"/locale-"+GetLocale()+".MPQ")) { printf("Locale \"%s\" seems valid, starting conversion...\n",GetLocale()); CreateDir("stuffextract");