# HG changeset patch # User darkvater # Date 1107173080 0 # Node ID 1b8d4b11aab3bea3dbb9deec74da169b26788927 # Parent 6f94bcdd620d6e09d73a0a9045dcbc87e86cd851 (svn r1754) - Fix: you can once again load newgrf files with lots of sprites. Index wasn't reset in second run, thus counting them double. diff -r 6f94bcdd620d -r 1b8d4b11aab3 spritecache.c --- a/spritecache.c Mon Jan 31 11:36:16 2005 +0000 +++ b/spritecache.c Mon Jan 31 12:04:40 2005 +0000 @@ -896,6 +896,7 @@ // in each loading stage, (try to) open each file specified in the config and load information from it. _custom_sprites_base = load_index; for (_loading_stage = 0; _loading_stage < 2; _loading_stage++) { + load_index = _custom_sprites_base; for (j = 0; j != lengthof(_newgrf_files) && _newgrf_files[j]; j++) { if ( !FiosCheckFileExists(_newgrf_files[j]) ) continue;