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 /engine.h | |
parent | d0cdb45b6c634b4b7238f9b8b8cd9344cb7b1ac3 (diff) | |
download | openttd-fa8f46c0b7f4723c12ddefd77d619ca98b6c7c6c.tar.xz |
(svn r2432) Use GetEngine() instead of DEREF_ENGINE() or even _engines[]
Diffstat (limited to 'engine.h')
-rw-r--r-- | engine.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -222,7 +222,7 @@ enum { }; VARDEF Engine _engines[TOTAL_NUM_ENGINES]; #define FOR_ALL_ENGINES(e) for (e = _engines; e != endof(_engines); e++) -#define DEREF_ENGINE(i) (GetEngine(i)) + static inline Engine* GetEngine(uint i) { assert(i < lengthof(_engines)); |