aboutsummaryrefslogtreecommitdiff
path: root/engines/director
diff options
context:
space:
mode:
authorEugene Sandulenko2017-03-17 09:28:33 +0000
committerEugene Sandulenko2017-03-17 09:28:33 +0000
commit595ea902bf08b988d8711adf1d5a4e7feb6e7bfd (patch)
treea726c383dc25c5165f6fd643a2f67cb76d2d74c5 /engines/director
parent0c915687538d84d1a27534bc75f917e5be394eef (diff)
downloadscummvm-rg350-595ea902bf08b988d8711adf1d5a4e7feb6e7bfd.tar.gz
scummvm-rg350-595ea902bf08b988d8711adf1d5a4e7feb6e7bfd.tar.bz2
scummvm-rg350-595ea902bf08b988d8711adf1d5a4e7feb6e7bfd.zip
DIRECTOR: The maximum cast num is H88, 512, not 513
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 c53541e23f..dbd1cd351f 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;