1
0
Fork 0

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

pull/13285/head
Loïc Guilloux 2025-03-03 23:59:57 +01:00 committed by GitHub
parent aec1046d19
commit 0d4346c8dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

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