mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-12 12:40:58 +00:00
SCUMM: Remove unnecessary NULL check, CID 1003627
Since ah->data is an array, it can't ever be NULL.
This commit is contained in:
parent
3c6aaaa1fb
commit
598d1a9c9c
@ -158,7 +158,7 @@ int ScummEngine_v72he::readArray(int array, int idx2, int idx1) {
|
||||
|
||||
ArrayHeader *ah = (ArrayHeader *)getResourceAddress(rtString, readVar(array));
|
||||
|
||||
if (ah == NULL || ah->data == NULL)
|
||||
if (!ah)
|
||||
error("readArray: invalid array %d (%d)", array, readVar(array));
|
||||
|
||||
if (idx2 < (int)FROM_LE_32(ah->dim2start) || idx2 > (int)FROM_LE_32(ah->dim2end) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user