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

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "12690" #define REVISION_NR "12691"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__