aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-11-27 19:29:32 +0100
committerEugene Sandulenko2019-11-27 19:29:32 +0100
commita108fb8f92525dabddc481ce716f6e054b72271f (patch)
treea3fc8b9e5acdc89045edc4ddab857542d8a1552e
parentec80f20416b2ec785f60a01237c6fb63c8bbe122 (diff)
downloadscummvm-rg350-a108fb8f92525dabddc481ce716f6e054b72271f.tar.gz
scummvm-rg350-a108fb8f92525dabddc481ce716f6e054b72271f.tar.bz2
scummvm-rg350-a108fb8f92525dabddc481ce716f6e054b72271f.zip
DIRECTOR: Fix crash with debug ouptut
-rw-r--r--engines/director/score.cpp3
-rw-r--r--engines/director/score.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index f3934db9ea..ea90b2ef9f 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -46,7 +46,8 @@ const char *scriptTypes[] = {
"MovieScript",
"SpriteScript",
"FrameScript",
- "CastScript"
+ "CastScript",
+ "GlobalScript"
};
const char *scriptType2str(ScriptType scr) {
diff --git a/engines/director/score.h b/engines/director/score.h
index 271b5ead61..5f9b79cb31 100644
--- a/engines/director/score.h
+++ b/engines/director/score.h
@@ -53,7 +53,7 @@ enum ScriptType {
kCastScript = 3,
kGlobalScript = 4,
kNoneScript = -1,
- kMaxScriptType = 4
+ kMaxScriptType = 4 // Sync with score.cpp:45, array scriptTypes[]
};
const char *scriptType2str(ScriptType scr);