mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Fix 15063 (#15064)
* Fix #15063. Sign window crash on open * Update changelog
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
- Fix: [#15028] Crash when placing large scenery.
|
||||
- Fix: [#15048] Crash when removing litter with cheats.
|
||||
- Fix: [#15052] Crash when using banner window.
|
||||
- Fix: [#15063] Crash when opening large scenery signs.
|
||||
- Improved: [#12626] Allow using RCT2 saves to mark RCT Classic (.sea) parks as finished and vice versa.
|
||||
|
||||
0.3.4 (2021-07-19)
|
||||
|
||||
@@ -102,15 +102,25 @@ public:
|
||||
|
||||
if (_isSmall)
|
||||
{
|
||||
list_information_type = tileElement->AsWall()->GetPrimaryColour();
|
||||
var_492 = tileElement->AsWall()->GetSecondaryColour();
|
||||
SceneryEntry = tileElement->AsWall()->GetEntryIndex();
|
||||
auto* wallElement = tileElement->AsWall();
|
||||
if (wallElement == nullptr)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
list_information_type = wallElement->GetPrimaryColour();
|
||||
var_492 = wallElement->GetSecondaryColour();
|
||||
SceneryEntry = wallElement->GetEntryIndex();
|
||||
}
|
||||
else
|
||||
{
|
||||
list_information_type = tileElement->AsLargeScenery()->GetPrimaryColour();
|
||||
var_492 = tileElement->AsLargeScenery()->GetSecondaryColour();
|
||||
SceneryEntry = tileElement->AsLargeScenery()->GetEntryIndex();
|
||||
auto* sceneryElement = tileElement->AsLargeScenery();
|
||||
if (sceneryElement == nullptr)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
list_information_type = sceneryElement->GetPrimaryColour();
|
||||
var_492 = sceneryElement->GetSecondaryColour();
|
||||
SceneryEntry = sceneryElement->GetEntryIndex();
|
||||
}
|
||||
|
||||
// Create viewport
|
||||
|
||||
Reference in New Issue
Block a user