Tools/Extractors: Fixed many false positive err=2 messages and fixed many compile warnings

This commit is contained in:
Shauren committed 2013-05-28 17:37:10 +02:00
1 parent 0938fdeeec
commit 26a22dc3ab
9 files changed
+99 -103

No files matched your search

+2 -2
View File
@@ -51,7 +51,7 @@ bool ADT_file::prepareLoadedData()
return false;
// Check and prepare MHDR
a_grid = (adt_MHDR *)(GetData()+8+version->size);
a_grid = (adt_MHDR*)(GetData()+8+version->size);
if (!a_grid->prepareLoadedData())
return false;
@@ -63,7 +63,7 @@ bool ADT_file::prepareLoadedData()
{
uint32 header = *(uint32*)ptr;
uint32 size = *(uint32*)(ptr + 4);
if (header == 'MCNK')
if (header == MCNKMagic.fcc)
{
cells[mcnk_count / ADT_CELLS_PER_GRID][mcnk_count % ADT_CELLS_PER_GRID] = (adt_MCNK*)ptr;
++mcnk_count;