We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 430821a commit adb1ff1Copy full SHA for adb1ff1
appOPHD/States/GameState.cpp
@@ -164,9 +164,9 @@ void GameState::onLoadGame(const std::string& saveGameName)
164
{
165
throw std::runtime_error("Save game file does not exist: " + saveGamePath);
166
}
167
- auto newMapView = std::make_unique<MapViewState>(*mMainReportsState.get(), saveGamePath);
168
- newMapView->initialize();
169
- mNewMapViewState = std::move(newMapView);
+ auto newMapViewState = std::make_unique<MapViewState>(*mMainReportsState.get(), saveGamePath);
+ newMapViewState->initialize();
+ mNewMapViewState = std::move(newMapViewState);
170
171
catch (const std::exception& e)
172
0 commit comments