1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-23 16:08:51 -05:00

Fix some "Conditional jump or move depends on uninitialised value(s)" valgrind detections

This commit is contained in:
Perttu Ahola 2011-10-15 23:07:43 +03:00
parent fd6452749e
commit 825953bbdc
2 changed files with 4 additions and 2 deletions

View File

@ -492,10 +492,10 @@ void updateFastFaceRow(
u16 continuous_tiles_count = 0;
bool makes_face;
bool makes_face = false;
v3s16 p_corrected;
v3s16 face_dir_corrected;
u8 lights[4];
u8 lights[4] = {0,0,0,0};
TileSpec tile;
getTileInfo(blockpos_nodes, p, face_dir, daynight_ratio,
vmanip, temp_mods, smooth_lighting,

View File

@ -31,7 +31,9 @@ Player::Player():
touching_ground(false),
in_water(false),
in_water_stable(false),
is_climbing(false),
swimming_up(false),
is_frozen(false),
inventory_backup(NULL),
craftresult_is_preview(true),
hp(20),