make drawSentence not crash on us
svn-id: r7823
This commit is contained in:
parent
a5be83b352
commit
aafa8c0722
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue