aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v100he.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v100he.cpp')
-rw-r--r--scumm/script_v100he.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/script_v100he.cpp b/scumm/script_v100he.cpp
index 6210ce2522..eaa8a46fbf 100644
--- a/scumm/script_v100he.cpp
+++ b/scumm/script_v100he.cpp
@@ -2779,8 +2779,10 @@ void ScummEngine_v100he::decodeParseString(int m, int n) {
_string[m].loadDefault();
if (n) {
_actorToPrintStrFor = pop();
- a = derefActorSafe(_actorToPrintStrFor, "decodeParseString");
- _string[0].color = a->_talkColor;
+ if (_actorToPrintStrFor != 0xFF) {
+ a = derefActorSafe(_actorToPrintStrFor, "decodeParseString");
+ _string[0].color = a->_talkColor;
+ }
}
break;
case 92: