summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-03-19 22:38:54 +0000
committerfrosch <frosch@openttd.org>2012-03-19 22:38:54 +0000
commitee03cda8585fa36ae8f69feae564eef15fd04727 (patch)
treeee341197be50195d32281e74984fadcef800b00a /src
parentad9d1ca6395adc0b4cea3b61efefaefe09738aea (diff)
downloadopenttd-ee03cda8585fa36ae8f69feae564eef15fd04727.tar.xz
(svn r24050) -Fix: Realsprites inside the action 11 block were not skipped correctly.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index a015fe5ad..c0f59b92e 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -6954,7 +6954,7 @@ static void GRFSound(ByteReader *buf)
if (type != 0xFF) {
grfmsg(1, "GRFSound: Unexpected RealSprite found, skipping");
FioSkipBytes(7);
- SkipSpriteData(type, num - 8);
+ SkipSpriteData(type, len - 8);
continue;
}