Tools/Extractors: Fixed many false positive err=2 messages and fixed many compile warnings
This commit is contained in:
1 parent
0938fdeeec
commit
26a22dc3ab
9 files changed
+99
-103
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user