summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-08 17:13:46 +0000
committerdarkvater <darkvater@openttd.org>2004-09-08 17:13:46 +0000
commitde18c544ccb2d0f3d3bc8c853aa8009c120f351a (patch)
tree482c2a5e348ba18c30c391e457fc4cac6a7e2503
parent091566b7796fbb3916afab4a354e283e11683231 (diff)
downloadopenttd-de18c544ccb2d0f3d3bc8c853aa8009c120f351a.tar.xz
(svn r183) -Fix: fix landscape-toolbar crash when newgrf are enabled. Dominik forgot to add +1 to index upon load :)
-rw-r--r--spritecache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spritecache.c b/spritecache.c
index f76d79314..681af180e 100644
--- a/spritecache.c
+++ b/spritecache.c
@@ -702,7 +702,7 @@ static void LoadSpriteTables()
load_index += LoadGrfFile("canalsw.grf", load_index, i++);
/* XXX: Only for debugging. Will be more generic. */
- load_index = SPR_OPENTTD_BASE + OPENTTD_SPRITES_COUNT;
+ load_index = SPR_OPENTTD_BASE + OPENTTD_SPRITES_COUNT+1;
for(j=0; j!=lengthof(_newgrf_files) && _newgrf_files[j]; j++)
load_index += LoadGrfFile(_newgrf_files[j], load_index, i++);