Skip to content

Commit

Permalink
crash on uninitialized simulationViewPtr fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Sep 27, 2024
1 parent 6eed9f6 commit b12e635
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/Gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ _MainWindow::_MainWindow(SimulationController const& simController, GuiLogger co
std::make_shared<_EditorController>(_simController);
_simulationView = std::make_shared<_SimulationView>(_simController);
_simInteractionController = std::make_shared<_SimulationInteractionController>(_simController, _editorController, _simulationView);
simulationViewPtr = _simulationView.get();
_statisticsWindow = std::make_shared<_StatisticsWindow>(_simController);
_temporalControlWindow = std::make_shared<_TemporalControlWindow>(_simController, _statisticsWindow);
_spatialControlWindow = std::make_shared<_SpatialControlWindow>(_simController, _temporalControlWindow);
Expand Down

0 comments on commit b12e635

Please sign in to comment.