mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[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:
parent
6c84f6f537
commit
7cf1ed7c68
2 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue