ai.c
changeset 1174 27e386195965
parent 1141 a69b3dc60f64
child 1209 a1ac96655b79
--- a/ai.c	Tue Jan 25 21:00:38 2005 +0000
+++ b/ai.c	Tue Jan 25 21:43:57 2005 +0000
@@ -3762,7 +3762,7 @@
 		uint tile = ++p->ai.state_counter;
 
 		// Iterated all tiles?
-		if (tile == 0) {
+		if (tile >= MapSize()) {
 			p->ai.state = AIS_REMOVE_STATION;
 			return;
 		}