diff options
-rw-r--r-- | scumm/script_v2.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index 043871cbb9..2920610c1d 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -883,14 +883,16 @@ void Scumm_v2::o2_drawSentence() { strcpy(sentence, (char*)getResourceAddress(rtVerb, slot)); if (_scummVars[VAR_SENTENCE_OBJECT1] > 0) { - if (temp = getObjOrActorName(_scummVars[VAR_SENTENCE_OBJECT1])) { + temp = getObjOrActorName(_scummVars[VAR_SENTENCE_OBJECT1]); + if (temp) { strcat(sentence, " "); strcat(sentence, (char*)temp); } } if (_scummVars[VAR_SENTENCE_OBJECT2] > 0) { - if (temp = getObjOrActorName(_scummVars[VAR_SENTENCE_OBJECT2])) { + temp = getObjOrActorName(_scummVars[VAR_SENTENCE_OBJECT2]); + if (temp) { strcat(sentence, " with "); strcat(sentence, (char*)temp); } |