Fix check of the return value of findLocalObjectSlot() in loadFlObject()
svn-id: r17473
This commit is contained in:
parent
cbe1437c27
commit
866e0c8613
1 changed files with 2 additions and 1 deletions
|
@ -1634,7 +1634,8 @@ void ScummEngine::loadFlObject(uint object, uint room) {
|
|||
findObjectInRoom(&foir, foImageHeader | foCodeHeader, object, room);
|
||||
|
||||
// Add an entry for the new floating object in the local object table
|
||||
if (!(objslot = findLocalObjectSlot()))
|
||||
objslot = findLocalObjectSlot();
|
||||
if (objslot == -1)
|
||||
error("loadFlObject: Local Object Table overflow");
|
||||
|
||||
od = &_objs[objslot];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue