1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Move variables not saved in the track design to their own struct

This commit is contained in:
Gymnasiast
2024-07-03 22:18:48 +02:00
parent 56accb3790
commit e47f526067
8 changed files with 60 additions and 46 deletions

View File

@@ -262,7 +262,7 @@ GameActions::Result TrackDesignAction::Execute() const
for (int32_t count = 1; count == 1 || r.Error != GameActions::Status::Ok; ++count)
{
auto name = count == 1 ? _td.name : (_td.name + " " + std::to_string(count));
auto name = count == 1 ? _td.gameStateData.name : (_td.gameStateData.name + " " + std::to_string(count));
auto gameAction = RideSetNameAction(ride->id, name);
gameAction.SetFlags(GetFlags());
r = GameActions::ExecuteNested(&gameAction);