Changeset - r15109:6f957cc68271
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-05-01 17:53:25
frosch@openttd.org
(svn r19748) -Fix (r19743): Callback 22 and 38 are called with ind == NULL.
1 file changed with 2 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/newgrf_industries.cpp
Show inline comments
 
@@ -346,15 +346,13 @@ static const SpriteGroup *IndustryResolv
 
static uint32 IndustryGetRandomBits(const ResolverObject *object)
 
{
 
	const Industry *ind = object->u.industry.ind;
 
	assert(ind != NULL);
 
	return ind->random;
 
	return ind != NULL ? ind->random: 0;
 
}
 

	
 
static uint32 IndustryGetTriggers(const ResolverObject *object)
 
{
 
	const Industry *ind = object->u.industry.ind;
 
	assert(ind != NULL);
 
	return ind->random_triggers;
 
	return ind != NULL ? ind->random_triggers : 0;
 
}
 

	
 
static void IndustrySetTriggers(const ResolverObject *object, int triggers)
0 comments (0 inline, 0 general)