Skip to content

Commit a67553c

Browse files
committed
[s2000] Fix a bug with vmap extraction
This bug appears to have no real impact in wotlk (based on commit [12481] - c444465) Signed-off-by: Schmoozerd <[email protected]>
1 parent a13db5c commit a67553c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

contrib/vmap_extractor/vmapextract/gameobject_extract.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
bool ExtractSingleModel(std::string& fname, StringSet& failedPaths)
1010
{
11-
char* name = GetPlainName((char*)fname.c_str());
12-
char* ext = GetExtension(name);
11+
char* ext = GetExtension(GetPlainName((char*)fname.c_str()));
1312

1413
// < 3.1.0 ADT MMDX section store filename.mdx filenames for corresponded .m2 file
1514
if (!strcmp(ext, ".mdx"))
@@ -21,14 +20,15 @@ bool ExtractSingleModel(std::string& fname, StringSet& failedPaths)
2120
// >= 3.1.0 ADT MMDX section store filename.m2 filenames for corresponded .m2 file
2221
// nothing do
2322

24-
std::string output(szWorkDirWmo);
23+
std::string output(szWorkDirWmo); // Stores output filename (possible changed)
2524
output += "/";
26-
output += name;
25+
output += GetPlainName(fname.c_str());
26+
2727

2828
if (FileExists(output.c_str()))
2929
return true;
3030

31-
Model mdl(fname);
31+
Model mdl(fname); // Possible changed fname
3232
if (!mdl.open(failedPaths))
3333
return false;
3434

src/shared/revision_nr.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#ifndef __REVISION_NR_H__
22
#define __REVISION_NR_H__
3-
#define REVISION_NR "1999"
3+
#define REVISION_NR "2000"
44
#endif // __REVISION_NR_H__

0 commit comments

Comments
 (0)