TONY: Endian fix

This commit is contained in:
Paul Gilbert 2012-05-20 13:56:33 +10:00
parent 0450275c44
commit 6f6486e589

View file

@ -1923,7 +1923,7 @@ void RMGameBoxes::LoadState(byte *state) {
int nloc, nbox;
// Load number of items
nloc = *(int*)state;
nloc = READ_LE_UINT32(state);
state += 4;
assert(nloc <= m_nLocBoxes);