diff options
| author | jacob1 <jfu614@gmail.com> | 2013-01-07 00:41:18 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-01-07 00:41:18 (GMT) |
| commit | 4aaf3b852ee5b7b98f83a3bcf991b6fdcc13f8ff (patch) | |
| tree | 61ee82ad1ebc65311ba7a506e3b10777a2108586 /src/simulation/Simulation.cpp | |
| parent | d1abfc313eb3d6508a35cbef458739b4d7c3f857 (diff) | |
| download | powder-4aaf3b852ee5b7b98f83a3bcf991b6fdcc13f8ff.zip powder-4aaf3b852ee5b7b98f83a3bcf991b6fdcc13f8ff.tar.gz | |
fix many more uninitialized variables
Diffstat (limited to 'src/simulation/Simulation.cpp')
| -rw-r--r-- | src/simulation/Simulation.cpp | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index 92b6be3..dbbedfc 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)); |
