Changeset - r16619:be6d97f3a9aa
[Not reviewed]
master
0 1 0
rubidium - 13 years ago 2010-11-30 14:11:29
rubidium@openttd.org
(svn r21360) -Fix [FS#4281]: crash when randomised action2 was used when resolving the image to draw in the buy menu
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_object.cpp
Show inline comments
 
@@ -95,7 +95,8 @@ INSTANTIATE_NEWGRF_CLASS_METHODS(ObjectC
 

	
 
static uint32 ObjectGetRandomBits(const ResolverObject *object)
 
{
 
	return IsTileType(object->u.object.tile, MP_OBJECT) ? GetObjectRandomBits(object->u.object.tile) : 0;
 
	TileIndex t = object->u.object.tile;
 
	return IsValidTile(t) && IsTileType(t, MP_OBJECT) ? GetObjectRandomBits(t) : 0;
 
}
 

	
 
static uint32 ObjectGetTriggers(const ResolverObject *object)
0 comments (0 inline, 0 general)