From ee03cda8585fa36ae8f69feae564eef15fd04727 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 19 Mar 2012 22:38:54 +0000 Subject: (svn r24050) -Fix: Realsprites inside the action 11 block were not skipped correctly. --- src/newgrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-70-g09d2