summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-08 16:07:32 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-08 16:07:32 +0000
commitd2fb6614c65c7798142485ceedab487a658440e4 (patch)
tree2b7e5bb1d01b09bdb80a71850e652b45d01c3ac4 /src
parent8c7bd8fef47e2a0c1c2a48a770249f6af59721e7 (diff)
downloadopenttd-d2fb6614c65c7798142485ceedab487a658440e4.tar.xz
(svn r11782) -Codechange: e->type was used before being properly initialized (it relied on previous runs) but there is no need to invalidate window data during game load as the windows in question cannot be open.
Diffstat (limited to 'src')
-rw-r--r--src/oldloader.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/oldloader.cpp b/src/oldloader.cpp
index 3a85d7f89..68c5dfb9c 100644
--- a/src/oldloader.cpp
+++ b/src/oldloader.cpp
@@ -25,7 +25,6 @@
#include "date_func.h"
#include "vehicle_func.h"
#include "variables.h"
-#include "autoreplace_gui.h"
enum {
HEADER_SIZE = 49,
@@ -1623,7 +1622,6 @@ static bool LoadOldMain(LoadgameState *ls)
for (Engine *e = _engines; e != endof(_engines); e++) {
if (_date >= (e->intro_date + 365)) {
e->flags = (e->flags & ~ENGINE_EXCLUSIVE_PREVIEW) | ENGINE_AVAILABLE;
- AddRemoveEngineFromAutoreplaceAndBuildWindows(e->type);
e->player_avail = (byte)-1;
}
}