Tools/MeshExtractor:

* Fixed a bunch of errors
* Allow to extract m2 and mdx models, WMOs are still not being extracted.
This commit is contained in:
Subv committed 2012-10-03 21:09:05 -05:00
1 parent e32ddea96a
commit d2437407f4
12 files changed
+183 -29

No files matched your search

@@ -11,7 +11,7 @@ void ObjectDataHandler::ProcessMapChunk( MapChunk* chunk )
int32 firstIndex = Source->ObjectData->GetFirstIndex("MCNK");
if (firstIndex == -1)
return;
if (firstIndex + chunk->Index > Source->ObjectData->Chunks.size())
if (uint32(firstIndex + chunk->Index) > Source->ObjectData->Chunks.size())
return;
Chunk* ourChunk = Source->ObjectData->Chunks[firstIndex + chunk->Index];
if (ourChunk->Length == 0)