diff options
author | Colin Snover | 2017-09-10 22:55:50 -0500 |
---|---|---|
committer | Eugene Sandulenko | 2017-09-11 08:14:55 +0200 |
commit | 58105982adf46f115a3d9b89d28357ad1c7976e6 (patch) | |
tree | 37fc3b5ac46a4be0256adfa7b9c3f46e90bc27d8 /engines/agos/draw.cpp | |
parent | cc12c878b7faba373ac23aecf798f979122e5bd8 (diff) | |
download | scummvm-rg350-58105982adf46f115a3d9b89d28357ad1c7976e6.tar.gz scummvm-rg350-58105982adf46f115a3d9b89d28357ad1c7976e6.tar.bz2 scummvm-rg350-58105982adf46f115a3d9b89d28357ad1c7976e6.zip |
AGOS: Fix value truncation in AGOSEngine::animateSprites
In commit f0581bab4a4b1b4102a7fbdd4a3d54d4397e00e9 the index value
for the array was changed from a constant to a variable, but uint8
is too small to contain 293, so this value was ending up as 37.
Diffstat (limited to 'engines/agos/draw.cpp')
-rw-r--r-- | engines/agos/draw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agos/draw.cpp b/engines/agos/draw.cpp index 4ba9446eb2..f7ceeb70c1 100644 --- a/engines/agos/draw.cpp +++ b/engines/agos/draw.cpp @@ -157,7 +157,7 @@ void AGOSEngine::animateSprites() { } if (getGameType() == GType_ELVIRA1 || getGameType() == GType_ELVIRA2) { - const uint8 var = (getGameType() == GType_ELVIRA1) ? 293 : 71; + const uint var = (getGameType() == GType_ELVIRA1) ? 293 : 71; if (_wallOn && !_variableArray[var]) { _wallOn--; |