diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index d7e85fb3e..5118d17c5 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -183,7 +183,8 @@ GameView::GameView(): screenshotIndex(0), recordingIndex(0), toolTipPresence(0), - currentSaveType(0) + currentSaveType(0), + lastLogEntry(0.0f) { int currentX = 1; diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 92b6be3f8..dbbedfc79 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -4783,9 +4783,22 @@ Simulation::~Simulation() delete tools[i]; } -Simulation::Simulation() +Simulation::Simulation(): + sys_pause(0), + framerender(0), + aheat_enable(0), + legacy_enable(0), + gravityMode(0), + edgeMode(0), + water_equal_test(0), + pretty_powder(0), + sandcolour_frame(0), + emp_decor(0), + lighting_recreate(0), + force_stacking_check(0), + ISWIRE(0), + VINE_MODE(0) { - int tportal_rx[] = {-1, 0, 1, 1, 1, 0,-1,-1}; int tportal_ry[] = {-1,-1,-1, 0, 1, 1, 1, 0}; @@ -4819,15 +4832,6 @@ Simulation::Simulation() pv = air->pv; hv = air->hv; - sys_pause = 0; - framerender = 0; - pretty_powder = 0; - sandcolour_frame = 0; - aheat_enable = 0; - legacy_enable = 0; - VINE_MODE = 0; - water_equal_test = 0; - int menuCount; menu_section * msectionsT = LoadMenus(menuCount); memcpy(msections, msectionsT, menuCount * sizeof(menu_section));