author | truelight |
Fri, 20 Aug 2004 16:17:13 +0000 | |
changeset 93 | 813f01f3e02a |
parent 92 | 20b4c7536349 |
child 94 | 37f4a5aec25d |
--- a/ai_new.c Fri Aug 20 15:37:44 2004 +0000 +++ b/ai_new.c Fri Aug 20 16:17:13 2004 +0000 @@ -487,12 +487,13 @@ 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++; } - }; + } } }