Changeset - r595:22b6f71fb442
[Not reviewed]
master
0 1 0
Celestar - 20 years ago 2004-12-11 12:12:51
celestar@openttd.org
(svn r1017) Solved a Segfault if a station was built too close to the northern corner
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
station_cmd.c
Show inline comments
 
@@ -283,7 +283,7 @@ static Station *GetClosestStationFromTil
 

	
 
	FOR_ALL_STATIONS(st) {
 
		cur_dist = GetTileDist(tile, st->xy);
 
		if (cur_dist < threshold && (owner == 0xFF || st->owner == owner)) {
 
		if (cur_dist < threshold && (owner == 0xFF || st->owner == owner) && (st->xy != 0)) {
 
			threshold = cur_dist;
 
			best_station = st;
 
		}
0 comments (0 inline, 0 general)