summaryrefslogtreecommitdiff
path: root/oldloader.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-07 18:13:49 +0000
committertron <tron@openttd.org>2005-06-07 18:13:49 +0000
commitfa8f46c0b7f4723c12ddefd77d619ca98b6c7c6c (patch)
tree918dadd86e83f26d5de3c32831397bc35434bfa7 /oldloader.c
parentd0cdb45b6c634b4b7238f9b8b8cd9344cb7b1ac3 (diff)
downloadopenttd-fa8f46c0b7f4723c12ddefd77d619ca98b6c7c6c.tar.xz
(svn r2432) Use GetEngine() instead of DEREF_ENGINE() or even _engines[]
Diffstat (limited to 'oldloader.c')
-rw-r--r--oldloader.c4
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;
}