mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-02 03:35:09 +01:00
Move track design appearance to its own struct
This commit is contained in:
@@ -919,7 +919,7 @@ namespace OpenRCT2::Scripting
|
||||
if (rtd.HasFlag(RIDE_TYPE_FLAG_IS_MAZE))
|
||||
throw DukException() << "Cannot set 'colourScheme' property, TrackElement belongs to a maze.";
|
||||
|
||||
el->SetColourScheme(value.as_uint());
|
||||
el->SetColourScheme(static_cast<RideColourScheme>(value.as_uint()));
|
||||
Invalidate();
|
||||
}
|
||||
catch (const DukException& e)
|
||||
|
||||
Reference in New Issue
Block a user