mirror of https://github.com/OpenTTD/OpenTTD
(svn r2848) -Fix: [ 1256044 ] fixed crash when loading a map made before rev 2817 in scenario editor. This was introduced in 2817
parent
8f398f2f50
commit
042f079b8d
13
openttd.c
13
openttd.c
|
@ -1249,11 +1249,14 @@ bool AfterLoadGame(uint version)
|
||||||
p->engine_renew_months = -6;
|
p->engine_renew_months = -6;
|
||||||
p->engine_renew_money = 100000;
|
p->engine_renew_money = 100000;
|
||||||
}
|
}
|
||||||
// Set the human controlled player to the patch settings
|
if (_local_player < MAX_PLAYERS) {
|
||||||
p = GetPlayer(_local_player);
|
// Set the human controlled player to the patch settings
|
||||||
p->engine_renew = _patches.autorenew;
|
// Scenario editor do not have any companies
|
||||||
p->engine_renew_months = _patches.autorenew_months;
|
p = GetPlayer(_local_player);
|
||||||
p->engine_renew_money = _patches.autorenew_money;
|
p->engine_renew = _patches.autorenew;
|
||||||
|
p->engine_renew_months = _patches.autorenew_months;
|
||||||
|
p->engine_renew_money = _patches.autorenew_money;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FOR_ALL_PLAYERS(p) {
|
FOR_ALL_PLAYERS(p) {
|
||||||
|
|
Loading…
Reference in New Issue