diff options
-rw-r--r-- | engines/supernova/state.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index cc06c511b9..37ff15f808 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -57,7 +57,7 @@ Object *Inventory::get(int index) const { if (index < _numObjects) return _inventory[index]; - return NULL; + return const_cast<Object *>(&Object::nullObject); } Object *Inventory::get(ObjectID id) const { @@ -66,7 +66,7 @@ Object *Inventory::get(ObjectID id) const { return _inventory[i]; } - return NULL; + return const_cast<Object *>(&Object::nullObject); } GuiElement::GuiElement() |