mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-19 15:25:39 +00:00
(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.
This commit is contained in:
parent
4479c06e2d
commit
352f13dad1
@ -25,7 +25,6 @@
|
|||||||
#include "date_func.h"
|
#include "date_func.h"
|
||||||
#include "vehicle_func.h"
|
#include "vehicle_func.h"
|
||||||
#include "variables.h"
|
#include "variables.h"
|
||||||
#include "autoreplace_gui.h"
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
HEADER_SIZE = 49,
|
HEADER_SIZE = 49,
|
||||||
@ -1623,7 +1622,6 @@ static bool LoadOldMain(LoadgameState *ls)
|
|||||||
for (Engine *e = _engines; e != endof(_engines); e++) {
|
for (Engine *e = _engines; e != endof(_engines); e++) {
|
||||||
if (_date >= (e->intro_date + 365)) {
|
if (_date >= (e->intro_date + 365)) {
|
||||||
e->flags = (e->flags & ~ENGINE_EXCLUSIVE_PREVIEW) | ENGINE_AVAILABLE;
|
e->flags = (e->flags & ~ENGINE_EXCLUSIVE_PREVIEW) | ENGINE_AVAILABLE;
|
||||||
AddRemoveEngineFromAutoreplaceAndBuildWindows(e->type);
|
|
||||||
e->player_avail = (byte)-1;
|
e->player_avail = (byte)-1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user