aboutsummaryrefslogtreecommitdiff
path: root/engines/director
diff options
context:
space:
mode:
authorEugene Sandulenko2017-03-17 09:24:59 +0000
committerEugene Sandulenko2017-03-17 09:24:59 +0000
commit444d193a36b4f6c20aad1c1294fad638da85d593 (patch)
treeee18541590d179a20793e0663be39e94a0d9cc3d /engines/director
parent2dc77ededa064aeacf36a677b2933f19e6f59f37 (diff)
downloadscummvm-rg350-444d193a36b4f6c20aad1c1294fad638da85d593.tar.gz
scummvm-rg350-444d193a36b4f6c20aad1c1294fad638da85d593.tar.bz2
scummvm-rg350-444d193a36b4f6c20aad1c1294fad638da85d593.zip
DIRECTOR: Fix num to cast id for cast A11
Diffstat (limited to 'engines/director')
-rw-r--r--engines/director/util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/director/util.cpp b/engines/director/util.cpp
index ccde2b3127..c53541e23f 100644
--- a/engines/director/util.cpp
+++ b/engines/director/util.cpp
@@ -48,7 +48,7 @@ char *numToCastNum(int num) {
res[3] = '\0';
num--;
- if (num > 0 && num <= 512) {
+ if (num >= 0 && num <= 512) {
int c = num / 64;
res[0] = 'A' + c;
num -= 64 * c;