# HG changeset patch # User truelight # Date 2007-09-13 22:48:11 # Node ID a927e2079d63f64a678954a97ad5d35cf08b7de3 # Parent 3866944bd4e8869d62da85ad2e45d28c78770d01 (svn r11101) -Fix r11099: the check: file_pos == 0, no longer works; adjust the check with file_slot. This solves the ? sprites with autorail (nice catch Progman) diff --git a/src/spritecache.cpp b/src/spritecache.cpp --- a/src/spritecache.cpp +++ b/src/spritecache.cpp @@ -121,7 +121,7 @@ bool SpriteExists(SpriteID id) /* Special case for Sprite ID zero -- its position is also 0... */ if (id == 0) return true; if (id >= _spritecache_items) return false; - return GetSpriteCache(id)->file_pos != 0; + return !(GetSpriteCache(id)->file_pos == 0 && GetSpriteCache(id)->file_slot == 0); } void* AllocSprite(size_t);