diff options
author | Matthew Hoops | 2011-10-29 12:28:47 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-10-29 12:28:47 -0400 |
commit | 60ecf84365935d32fe840dc4d055629745a63b00 (patch) | |
tree | 5b37cdffca044674f286bde7729ec6bc70c2915d /engines/pegasus | |
parent | bcf5ea1dc246b86a06ca9f1f97fa5525bd0a006b (diff) | |
download | scummvm-rg350-60ecf84365935d32fe840dc4d055629745a63b00.tar.gz scummvm-rg350-60ecf84365935d32fe840dc4d055629745a63b00.tar.bz2 scummvm-rg350-60ecf84365935d32fe840dc4d055629745a63b00.zip |
PEGASUS: Fix dying when no interface is set up
Now you can die in the space chase
Diffstat (limited to 'engines/pegasus')
-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; |