Changeset - r16619:be6d97f3a9aa
[Not reviewed]
master
0 1 0
rubidium - 14 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
 
@@ -92,13 +92,14 @@ template <typename Tspec, typename Tid, 
 

	
 
INSTANTIATE_NEWGRF_CLASS_METHODS(ObjectClass, ObjectSpec, ObjectClassID, OBJECT_CLASS_MAX)
 

	
 

	
 
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)
 
{
 
	return 0;
 
}
0 comments (0 inline, 0 general)