summaryrefslogtreecommitdiff
path: root/ai.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-03 21:57:05 +0000
committertron <tron@openttd.org>2004-12-03 21:57:05 +0000
commit56dd31f33bd40d08ec3453258c35af10e4638d6a (patch)
treef66c41d1934032e4de287daa7c53e7e795082529 /ai.c
parent5149373467c17a545def174b1ff5b405460b15b4 (diff)
downloadopenttd-56dd31f33bd40d08ec3453258c35af10e4638d6a.tar.xz
(svn r920) Replace vehicle info macros with inline functions and add asserts to check limits
Diffstat (limited to 'ai.c')
-rw-r--r--ai.c2
1 files changed, 1 insertions, 1 deletions
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