From 56dd31f33bd40d08ec3453258c35af10e4638d6a Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 3 Dec 2004 21:57:05 +0000 Subject: (svn r920) Replace vehicle info macros with inline functions and add asserts to check limits --- ai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ai.c') diff --git a/ai.c b/ai.c index 9bdd373b1..61326518b 100644 --- a/ai.c +++ b/ai.c @@ -121,7 +121,7 @@ static int AiChooseTrainToBuild(byte railtype, int32 money, byte flag) int i; for (i = 0; i < NUM_TRAIN_ENGINES; i++) { - RailVehicleInfo *rvi = &rail_vehinfo(i); + const RailVehicleInfo *rvi = rail_vehinfo(i); Engine *e = DEREF_ENGINE(i); if (e->railtype != railtype || rvi->flags & RVI_WAGON -- cgit v1.2.3-54-g00ecf