diff options
author | peter1138 <peter1138@openttd.org> | 2006-03-31 12:59:43 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-03-31 12:59:43 +0000 |
commit | cd0a67dc657c8c967745cb3fb91ea9d04a79a826 (patch) | |
tree | 3f9c7926897f63e5f92550c9c7802e07ec3a2f67 /players.c | |
parent | 859fc1d7f0173102d16e3a31b3ceb5066870ccb5 (diff) | |
download | openttd-cd0a67dc657c8c967745cb3fb91ea9d04a79a826.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) && |