mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22: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)
|
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;
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue