summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-03-31 12:59:43 +0000
committerpeter1138 <peter1138@openttd.org>2006-03-31 12:59:43 +0000
commiteb1568835815a10e4dde51c3067775feb4ca7930 (patch)
tree3f9c7926897f63e5f92550c9c7802e07ec3a2f67 /players.c
parent113b093d89b9a467769ea8d1f7d7d39e91846f15 (diff)
downloadopenttd-eb1568835815a10e4dde51c3067775feb4ca7930.tar.xz
(svn r4201) - Codechange: Do for _engine_info[] what we do for _*_vehicle_info[]; create and use a function to retrieve data, and ensure constness.
Diffstat (limited to 'players.c')
-rw-r--r--players.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/players.c b/players.c
index 2cdffd984..bdf8df98a 100644
--- a/players.c
+++ b/players.c
@@ -625,7 +625,7 @@ byte GetPlayerRailtypes(PlayerID p)
for (i = 0; i != TOTAL_NUM_ENGINES; i++) {
const Engine* e = GetEngine(i);
- const EngineInfo *ei = &_engine_info[i];
+ const EngineInfo *ei = EngInfo(i);
if (e->type == VEH_Train && HASBIT(ei->climates, _opt.landscape) &&
(HASBIT(e->player_avail, p) || _date >= (e->intro_date + 365)) &&