[Scummvm-git-logs] scummvm master -> 58105982adf46f115a3d9b89d28357ad1c7976e6
sev-
sev at scummvm.org
Mon Sep 11 08:14:58 CEST 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
58105982ad AGOS: Fix value truncation in AGOSEngine::animateSprites
Commit: 58105982adf46f115a3d9b89d28357ad1c7976e6
https://github.com/scummvm/scummvm/commit/58105982adf46f115a3d9b89d28357ad1c7976e6
Author: Colin Snover (github.com at zetafleet.com)
Date: 2017-09-11T08:14:55+02:00
Commit Message:
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.
Changed paths:
engines/agos/draw.cpp
diff --git a/engines/agos/draw.cpp b/engines/agos/draw.cpp
index 4ba9446..f7ceeb7 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--;
More information about the Scummvm-git-logs
mailing list