diff options
author | peter1138 <peter1138@openttd.org> | 2008-01-24 10:47:44 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-01-24 10:47:44 +0000 |
commit | 697b07c99c970ace193eb15fed49ae9de79031e1 (patch) | |
tree | cc0c41718a8b741964a2d843daea8ce4fadaedb8 /src/oldloader.cpp | |
parent | 9c65bcea7d41900b49d2b9ee7580018da9ee785a (diff) | |
download | openttd-697b07c99c970ace193eb15fed49ae9de79031e1.tar.xz |
(svn r11971) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead of for-loops
Diffstat (limited to 'src/oldloader.cpp')
-rw-r--r-- | src/oldloader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp index 190824503..68a07ca2a 100644 --- a/src/oldloader.cpp +++ b/src/oldloader.cpp @@ -1636,7 +1636,8 @@ static bool LoadOldMain(LoadgameState *ls) /* Make sure the available engines are really available, otherwise * we will get a "new vehicle"-spree. */ - for (Engine *e = _engines; e != endof(_engines); e++) { + Engine *e; + FOR_ALL_ENGINES(e) { if (_date >= (e->intro_date + 365)) { e->flags = (e->flags & ~ENGINE_EXCLUSIVE_PREVIEW) | ENGINE_AVAILABLE; e->player_avail = (byte)-1; |