Changeset - r1457:7acbd30dc5ee
[Not reviewed]
master
0 1 0
Darkvater - 20 years ago 2005-03-08 17:32:34
darkvater@openttd.org
(svn r1961) - Fix: [ 1158618 ] Segmentation fault when loading savegame, out of bounds array check.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
station_cmd.c
Show inline comments
 
@@ -2499,11 +2499,11 @@ static void UpdateStationRating(Station 
 
			}
 

	
 
			{
 
				if (!IS_HUMAN_PLAYER(st->owner) && st->owner != OWNER_NONE)
 
				if (st->owner != OWNER_NONE && !IS_HUMAN_PLAYER(st->owner))
 
							rating += _rating_boost[_opt.diff.competitor_intelligence];
 
			}
 

	
 
			if (st->owner < 8 && HASBIT(st->town->statues, st->owner))
 
			if (st->owner < MAX_PLAYERS && HASBIT(st->town->statues, st->owner))
 
				rating += 26;
 

	
 
			{
0 comments (0 inline, 0 general)