Skip to content

Commit 430821a

Browse files
committed
Renamed mNewMapView to mNewMapViewState
1 parent 3f63349 commit 430821a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

appOPHD/States/GameState.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ void GameState::onLoadGame(const std::string& saveGameName)
166166
}
167167
auto newMapView = std::make_unique<MapViewState>(*mMainReportsState.get(), saveGamePath);
168168
newMapView->initialize();
169-
mNewMapView = std::move(newMapView);
169+
mNewMapViewState = std::move(newMapView);
170170
}
171171
catch (const std::exception& e)
172172
{
@@ -204,9 +204,9 @@ NAS2D::State* GameState::update()
204204
mReturnState = new MainMenuState();
205205
}
206206

207-
if (mNewMapView)
207+
if (mNewMapViewState)
208208
{
209-
mMapViewState = std::move(mNewMapView);
209+
mMapViewState = std::move(mNewMapViewState);
210210
initializeMapViewState();
211211
}
212212

appOPHD/States/GameState.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class GameState : public NAS2D::State
5050
private:
5151
std::unique_ptr<MainReportsUiState> mMainReportsState;
5252
std::unique_ptr<MapViewState> mMapViewState;
53-
std::unique_ptr<MapViewState> mNewMapView;
53+
std::unique_ptr<MapViewState> mNewMapViewState;
5454
Wrapper* mActiveState = nullptr;
5555
NAS2D::State* mReturnState = this;
5656
NAS2D::Fade mFade;

0 commit comments

Comments
 (0)