(svn r24858) -Fix [FS#5404]: Make invalid sprite references to mapgen sprites behave the same as invalid references between recolour and real sprites.

This commit is contained in:
frosch 2012-12-26 15:14:37 +00:00
parent e9afedca14
commit 24e62f39e0
1 changed files with 1 additions and 1 deletions

View File

@ -810,7 +810,7 @@ static void *HandleInvalidSpriteRequest(SpriteID sprite, SpriteType requested, S
*/
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)) {