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

This commit is contained in:
Loïc Guilloux
2025-03-03 23:59:57 +01:00
committed by GitHub
parent aec1046d19
commit 0d4346c8dc

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();