diff options
-rw-r--r-- | scumm/script_v2.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index 3c3fc7daac..eb5456dea1 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -903,7 +903,11 @@ void Scumm_v2::o2_drawSentence() { if (!(_userState & 32)) return; - strcpy(sentence, (char*)getResourceAddress(rtVerb, slot)); + if (getResourceAddress(rtVerb, slot)) + strcpy(sentence, (char*)getResourceAddress(rtVerb, slot)); + else + return; + if (VAR(VAR_SENTENCE_OBJECT1) > 0) { temp = getObjOrActorName(VAR(VAR_SENTENCE_OBJECT1)); if (temp) { |