mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-25 16:09:20 -04:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user