mirror of https://github.com/OpenTTD/OpenTTD
(svn r10083) [0.5] -Fix [FS#836]: "Deactivate Electrified Railways" didn't work.
parent
4f757bb914
commit
c40f10d6d4
1
elrail.c
1
elrail.c
|
@ -422,6 +422,7 @@ int32 SettingsDisableElrail(int32 p1)
|
||||||
if (rv_info->engclass == 2 && e->railtype == old_railtype) {
|
if (rv_info->engclass == 2 && e->railtype == old_railtype) {
|
||||||
/* change it to the proper one */
|
/* change it to the proper one */
|
||||||
e->railtype = new_railtype;
|
e->railtype = new_railtype;
|
||||||
|
_engine_info[e_id].railtype = new_railtype;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue