Mercurial > hg > openttd
changeset 19924:68dfc16ddcfa draft
(svn r24858) -Fix [FS#5404]: Make invalid sprite references to mapgen sprites behave the same as invalid references between recolour and real sprites.
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 26 Dec 2012 15:14:37 +0000 |
parents | 4a8cbdf2bb7e |
children | dedb5921ec63 |
files | src/spritecache.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/spritecache.cpp +++ b/src/spritecache.cpp @@ -810,7 +810,7 @@ */ void *GetRawSprite(SpriteID sprite, SpriteType type, AllocatorProc *allocator) { - assert(IsMapgenSpriteID(sprite) == (type == ST_MAPGEN)); + assert(type != ST_MAPGEN || IsMapgenSpriteID(sprite)); assert(type < ST_INVALID); if (!SpriteExists(sprite)) {