[12691] Fix a bug with vmap extraction

This bug appears to have no real impact in wotlk original author @Schmoozerd
This commit is contained in:
sanctum32 2013-10-21 07:09:07 +03:00 committed by Antz
parent 6c84f6f537
commit 7cf1ed7c68
2 changed files with 3 additions and 4 deletions

View file

@ -8,8 +8,7 @@
bool ExtractSingleModel(std::string& fname, StringSet& failedPaths)
{
char* name = GetPlainName((char*)fname.c_str());
char* ext = GetExtension(name);
char* ext = GetExtension(GetPlainName((char*)fname.c_str()));
// < 3.1.0 ADT MMDX section store filename.mdx filenames for corresponded .m2 file
if (!strcmp(ext, ".mdx"))
@ -23,7 +22,7 @@ bool ExtractSingleModel(std::string& fname, StringSet& failedPaths)
std::string output(szWorkDirWmo); // Stores output filename (possible changed)
output += "/";
output += name;
output += GetPlainName(fname.c_str());
if (FileExists(output.c_str()))
return true;