Fix some "Conditional jump or move depends on uninitialised value(s)" valgrind detections
This commit is contained in:
parent
fd6452749e
commit
825953bbdc
|
@ -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,
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue