fix many more uninitialized variables

This commit is contained in:
jacob1 2013-01-06 19:41:18 -05:00
parent d1abfc313e
commit 4aaf3b852e
2 changed files with 17 additions and 12 deletions

View File

@ -183,7 +183,8 @@ GameView::GameView():
screenshotIndex(0),
recordingIndex(0),
toolTipPresence(0),
currentSaveType(0)
currentSaveType(0),
lastLogEntry(0.0f)
{
int currentX = 1;

View File

@ -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));