fix warnings
svn-id: r7778
This commit is contained in:
parent
280e8a0741
commit
1d916f2056
1 changed files with 4 additions and 2 deletions
|
@ -883,14 +883,16 @@ void Scumm_v2::o2_drawSentence() {
|
||||||
|
|
||||||
strcpy(sentence, (char*)getResourceAddress(rtVerb, slot));
|
strcpy(sentence, (char*)getResourceAddress(rtVerb, slot));
|
||||||
if (_scummVars[VAR_SENTENCE_OBJECT1] > 0) {
|
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, " ");
|
||||||
strcat(sentence, (char*)temp);
|
strcat(sentence, (char*)temp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_scummVars[VAR_SENTENCE_OBJECT2] > 0) {
|
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, " with ");
|
||||||
strcat(sentence, (char*)temp);
|
strcat(sentence, (char*)temp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue