mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-12 01:24:54 +00:00
(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:
parent
e9afedca14
commit
24e62f39e0
@ -810,7 +810,7 @@ static void *HandleInvalidSpriteRequest(SpriteID sprite, SpriteType requested, S
|
|||||||
*/
|
*/
|
||||||
void *GetRawSprite(SpriteID sprite, SpriteType type, AllocatorProc *allocator)
|
void *GetRawSprite(SpriteID sprite, SpriteType type, AllocatorProc *allocator)
|
||||||
{
|
{
|
||||||
assert(IsMapgenSpriteID(sprite) == (type == ST_MAPGEN));
|
assert(type != ST_MAPGEN || IsMapgenSpriteID(sprite));
|
||||||
assert(type < ST_INVALID);
|
assert(type < ST_INVALID);
|
||||||
|
|
||||||
if (!SpriteExists(sprite)) {
|
if (!SpriteExists(sprite)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user