aboutsummaryrefslogtreecommitdiff
path: root/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'object.cpp')
-rw-r--r--object.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/object.cpp b/object.cpp
index 442c376f5f..c3d7c001e3 100644
--- a/object.cpp
+++ b/object.cpp
@@ -920,6 +920,7 @@ int Scumm::getInventorySlot()
return i;
}
error("Inventory full, %d max items", _maxInventoryItems);
+ return -1;
}
void Scumm::SamInventoryHack(int obj)
@@ -1281,6 +1282,7 @@ int Scumm::findFlObjectSlot()
return i;
}
error("findFlObjectSlot: Out of FLObject slots");
+ return -1;
}
void Scumm::loadFlObject(uint object, uint room)