aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/scene.cpp
diff options
context:
space:
mode:
authorStrangerke2014-04-19 23:26:27 +0200
committerStrangerke2014-04-19 23:27:01 +0200
commit34d0bc72b571e5e6e0b4b4f3ee1a627cbf470d72 (patch)
tree83d2204ed47c33fc4dcd5656c92de62f3b0fbbd3 /engines/mads/scene.cpp
parent559efad195b2ec7e77bd9192328d9e48b2a81e29 (diff)
downloadscummvm-rg350-34d0bc72b571e5e6e0b4b4f3ee1a627cbf470d72.tar.gz
scummvm-rg350-34d0bc72b571e5e6e0b4b4f3ee1a627cbf470d72.tar.bz2
scummvm-rg350-34d0bc72b571e5e6e0b4b4f3ee1a627cbf470d72.zip
MADS: Implement scene 313, come renaming in RGB4 structure, used by AnimPalData
Diffstat (limited to 'engines/mads/scene.cpp')
-rw-r--r--engines/mads/scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index 65d1c04c0c..aff4aa36aa 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -254,7 +254,7 @@ void Scene::initPaletteAnimation(Common::Array<RGB4> &animData, bool animFlag) {
// Calculate total
_animCount = 0;
for (uint i = 0; i < _animPalData.size(); ++i)
- _animCount += _animPalData[i].r;
+ _animCount += _animPalData[i]._colorCount;
_animVal1 = (_animCount > 16) ? 3 : 0;
_cyclingActive = animFlag;