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
2012-10-03 21:09:05 -05:00
parent e32ddea96a
commit d2437407f4
12 changed files with 183 additions and 29 deletions
@@ -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)