aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2014-05-19 21:46:15 +0200
committerStrangerke2014-05-19 21:46:15 +0200
commit83f82104d0a49ba9eff521426b58831ac3b21a86 (patch)
tree9f43148fe2f468c834312ad301578b31dedc8361
parent9544db6510a9290559e0e1ece86aad7f97989341 (diff)
downloadscummvm-rg350-83f82104d0a49ba9eff521426b58831ac3b21a86.tar.gz
scummvm-rg350-83f82104d0a49ba9eff521426b58831ac3b21a86.tar.bz2
scummvm-rg350-83f82104d0a49ba9eff521426b58831ac3b21a86.zip
MADS: Reduce the scope of another variable in Animation
-rw-r--r--engines/mads/animation.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp
index 3e10fe9667..f006d1fe61 100644
--- a/engines/mads/animation.cpp
+++ b/engines/mads/animation.cpp
@@ -464,9 +464,8 @@ void Animation::update() {
paChanged = true;
}
- int newIndex = -1;
if (paChanged) {
- newIndex = scene._spriteSlots.add();
+ int newIndex = scene._spriteSlots.add();
scene._spriteSlots[newIndex]._seqIndex = -1;
scene._spriteSlots[newIndex]._flags = IMG_REFRESH;
}