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 | d2364f1d51ed868d6c9f0336c57dde46aef5fc3c (patch) | |
tree | 918dadd86e83f26d5de3c32831397bc35434bfa7 /engine.h | |
parent | f723540fbb69d32f1ca9d5487657f39e69efc239 (diff) | |
download | openttd-d2364f1d51ed868d6c9f0336c57dde46aef5fc3c.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)); |