1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-03 11:59:15 +00:00

Fix #13727, bdd1406: Incorrect ls.vehicle_names size for TTO saves

This commit is contained in:
glx22
2025-03-03 23:18:43 +01:00
parent 94c6221dff
commit 054ea4359d

View File

@@ -518,7 +518,10 @@ static void ReadTTDPatchFlags(LoadgameState &ls)
_old_extra_chunk_nums = 0;
_bump_assert_value = 0;
if (_savegame_type == SGT_TTO) return;
if (_savegame_type == SGT_TTO) {
ls.vehicle_names.resize(800);
return;
}
/* TTDPatch misuses old map3 (now m3/m4) for flags.. read them! */
ls.vehicle_multiplier = Tile(0).m3();