Changeset - r93:80371ed1fe74
[Not reviewed]
master
0 1 0
truelight - 20 years ago 2004-08-20 16:17:13
truelight@openttd.org
(svn r94) -Fix: AI crash bug (blathijs)
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
ai_new.c
Show inline comments
 
@@ -487,12 +487,13 @@ static bool AiNew_CheckVehicleStation(Pl
 
	FOR_ALL_VEHICLES(v) {
 
		if (v->owner == _current_player) {
 
			sched = v->schedule_ptr;
 
			if (sched == NULL) continue;
 
			while ((ord=*sched++) != 0) {
 
				if ((ord & OT_MASK) == OT_GOTO_STATION && DEREF_STATION(ord >> 8) == st) {
 
					// This vehicle has this city in his list
 
					count++;
 
				}
 
			};
 
			}
 
		}
 
	}
 
0 comments (0 inline, 0 general)