From 0df0e8846ad214f868852e54d00c4b8600a21991 Mon Sep 17 00:00:00 2001
From: Alyssa Milburn <fuzzie@fuzzie.org>
Date: Wed, 19 May 2010 13:21:15 +0200
Subject: [PATCH] increment zone/animation indexes even if we're skipping a definition
---
engines/parallaction/parser_ns.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/engines/parallaction/parser_ns.cpp b/engines/parallaction/parser_ns.cpp
index be72cf7..ff24a06 100644
a
|
b
|
void LocationParser_ns::parseAnimation(AnimationList &list, char *name) {
|
286 | 286 | debugC(5, kDebugParser, "parseAnimation(name: %s)", name); |
287 | 287 | |
288 | 288 | if (_vm->_location.findAnimation(name)) { |
| 289 | _zoneProg++; |
289 | 290 | _script->skip("endanimation"); |
290 | 291 | return; |
291 | 292 | } |
… |
… |
void LocationParser_ns::parseZone(ZoneList &list, char *name) {
|
1305 | 1306 | debugC(5, kDebugParser, "parseZone(name: %s)", name); |
1306 | 1307 | |
1307 | 1308 | if (_vm->_location.findZone(name)) { |
| 1309 | _zoneProg++; |
1308 | 1310 | _script->skip("endzone"); |
1309 | 1311 | return; |
1310 | 1312 | } |