aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/magic_eob.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/kyra/magic_eob.cpp b/engines/kyra/magic_eob.cpp
index a435850e54..52bca46a24 100644
--- a/engines/kyra/magic_eob.cpp
+++ b/engines/kyra/magic_eob.cpp
@@ -281,11 +281,10 @@ void EoBCoreEngine::removeAllCharacterEffects(int charIndex) {
memset(c->effectsRemainder, 0, 4);
for (int i = 0; i < 10; i++) {
- if (c->events[i] < 0) {
+ if (c->events[i] < 0)
removeCharacterEffect(-c->events[i], charIndex, 0);
- c->timers[i] = 0;
- c->events[i] = 0;
- }
+ c->timers[i] = 0;
+ c->events[i] = 0;
}
setupCharacterTimers();