diff --git a/src/openrct2-ui/windows/Map.cpp b/src/openrct2-ui/windows/Map.cpp index 371bfa8864..c4d1dbcdb4 100644 --- a/src/openrct2-ui/windows/Map.cpp +++ b/src/openrct2-ui/windows/Map.cpp @@ -136,7 +136,7 @@ static constexpr const ScreenCoordsXY MiniMapOffsets[] = { class MapWindow final : public Window { - uint8_t rotation; + uint8_t _rotation; public: MapWindow() @@ -154,7 +154,7 @@ public: InitScrollWidgets(); - rotation = get_current_rotation(); + _rotation = get_current_rotation(); InitMap(); gWindowSceneryRotation = 0; @@ -320,9 +320,9 @@ public: void OnUpdate() override { - if (get_current_rotation() != rotation) + if (get_current_rotation() != _rotation) { - rotation = get_current_rotation(); + _rotation = get_current_rotation(); InitMap(); CentreMapOnViewPoint(); }