diff options
author | Eugene Sandulenko | 2017-03-17 09:28:33 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2017-03-17 09:28:33 +0000 |
commit | 595ea902bf08b988d8711adf1d5a4e7feb6e7bfd (patch) | |
tree | a726c383dc25c5165f6fd643a2f67cb76d2d74c5 /engines/director | |
parent | 0c915687538d84d1a27534bc75f917e5be394eef (diff) | |
download | scummvm-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.cpp | 2 |
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; |