1
0
Fork 0

Fix #12825: Crash when opening road toolbar in scenario editor

Due to attempt to access missing road waypoint button
pull/12826/head
Jonathan G Rennison 2024-06-27 21:31:33 +01:00
parent a288644e20
commit b0a2a38f06
1 changed files with 1 additions and 1 deletions

View File

@ -825,7 +825,7 @@ struct BuildRoadToolbarWindow : Window {
void OnRealtimeTick([[maybe_unused]] uint delta_ms) override void OnRealtimeTick([[maybe_unused]] uint delta_ms) override
{ {
if (this->IsWidgetLowered(WID_ROT_BUILD_WAYPOINT)) CheckRedrawRoadWaypointCoverage(this); if (_game_mode == GM_NORMAL && this->IsWidgetLowered(WID_ROT_BUILD_WAYPOINT)) CheckRedrawRoadWaypointCoverage(this);
} }
/** /**