1
0
Fork 0

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

pull/13732/head
glx22 2025-03-03 23:18:43 +01:00
parent 94c6221dff
commit 054ea4359d
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();