From 993a106679e4e682d9028fe44d1e5f9f1f178506 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 25 Jan 2005 21:43:57 +0000 Subject: (svn r1676) Increase the size of TileIndex and TileIndexDiff to 32bits and adapt the save/load data and some other parts of the code to that change WARNING: If i made any mistake here it WILL lead to corrupted savegames! --- ai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ai.c') diff --git a/ai.c b/ai.c index 74164a0e8..8abe5f655 100644 --- a/ai.c +++ b/ai.c @@ -3762,7 +3762,7 @@ static void AiStateRemoveTrack(Player *p) uint tile = ++p->ai.state_counter; // Iterated all tiles? - if (tile == 0) { + if (tile >= MapSize()) { p->ai.state = AIS_REMOVE_STATION; return; } -- cgit v1.2.3-54-g00ecf