diff options
-rw-r--r-- | engines/teenagent/teenagent.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/teenagent/teenagent.cpp b/engines/teenagent/teenagent.cpp index 5940ec8d50..b23dd8f500 100644 --- a/engines/teenagent/teenagent.cpp +++ b/engines/teenagent/teenagent.cpp @@ -493,6 +493,10 @@ Common::Error TeenAgentEngine::run() { // debug(0, "%d, %s", current_object->id, current_object->name.c_str()); if (scene->getId() < 0) break; + + if (current_object == NULL) + break; + if (res->dseg.get_byte(0) == 3 && current_object->id == 1) { processCallback(0x5189); //boo! break; |