diff options
author | tron <tron@openttd.org> | 2005-06-07 18:13:49 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-06-07 18:13:49 +0000 |
commit | fa8f46c0b7f4723c12ddefd77d619ca98b6c7c6c (patch) | |
tree | 918dadd86e83f26d5de3c32831397bc35434bfa7 /oldloader.c | |
parent | d0cdb45b6c634b4b7238f9b8b8cd9344cb7b1ac3 (diff) | |
download | openttd-fa8f46c0b7f4723c12ddefd77d619ca98b6c7c6c.tar.xz |
(svn r2432) Use GetEngine() instead of DEREF_ENGINE() or even _engines[]
Diffstat (limited to 'oldloader.c')
-rw-r--r-- | oldloader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oldloader.c b/oldloader.c index 141e31e71..df3eb584a 100644 --- a/oldloader.c +++ b/oldloader.c @@ -1339,12 +1339,12 @@ static const OldChunks engine_chunk[] = { }; static bool LoadOldEngine(LoadgameState *ls, int num) { - if (!LoadChunk(ls, &_engines[num], engine_chunk)) + if (!LoadChunk(ls, GetEngine(num), engine_chunk)) return false; /* Make sure wagons are marked as do-not-age */ if ((num >= 27 && num < 54) || (num >= 57 && num < 84) || (num >= 89 && num < 116)) - _engines[num].age = 0xFFFF; + GetEngine(num)->age = 0xFFFF; return true; } |