Tools/Extractor: Fix vmaps extractor crash on linux

This commit is contained in:
Aokromes
2018-03-13 10:59:11 +01:00
parent 9471392886
commit 8779839d60

View File

@@ -400,7 +400,6 @@ void ParsMapFiles()
char fn[512];
char id[10];
char* name = map_ids[mapId].name;
sprintf(id, "%03u", itr->first);
sprintf(fn, "World\\Maps\\%s\\%s.wdt", name, name);
itr = wdts.emplace(std::piecewise_construct, std::forward_as_tuple(mapId), std::forward_as_tuple(fn, name, maps_that_are_parents.count(mapId) > 0)).first;
if (!itr->second.init(id, mapId))