diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/pegasus/pegasus.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp index b823ff2369..61a2383738 100644 --- a/engines/pegasus/pegasus.cpp +++ b/engines/pegasus/pegasus.cpp @@ -1127,12 +1127,12 @@ void PegasusEngine::doDeath() { } void PegasusEngine::throwAwayEverything() { - if (_items.getNumItems() != 0) + if (_items.getNumItems() != 0 && g_interface) _currentItemID = g_interface->getCurrentInventoryItem()->getObjectID(); else _currentItemID = kNoItemID; - if (_biochips.getNumItems() != 0) + if (_biochips.getNumItems() != 0 && g_interface) _currentItemID = g_interface->getCurrentBiochip()->getObjectID(); else _currentItemID = kNoItemID; |