# HG changeset patch # User peter1138 # Date 1199808452 0 # Node ID baeae9ef3674481a6352c9098c078b99f7333b94 # Parent 8a87b6988514227f71f13891d101229beeb9f9f0 (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. diff -r 8a87b6988514 -r baeae9ef3674 src/oldloader.cpp --- a/src/oldloader.cpp Mon Jan 07 22:38:30 2008 +0000 +++ b/src/oldloader.cpp Tue Jan 08 16:07:32 2008 +0000 @@ -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 @@ 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; } }