mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-24 08:28:49 -05:00
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;
|
u16 continuous_tiles_count = 0;
|
||||||
|
|
||||||
bool makes_face;
|
bool makes_face = false;
|
||||||
v3s16 p_corrected;
|
v3s16 p_corrected;
|
||||||
v3s16 face_dir_corrected;
|
v3s16 face_dir_corrected;
|
||||||
u8 lights[4];
|
u8 lights[4] = {0,0,0,0};
|
||||||
TileSpec tile;
|
TileSpec tile;
|
||||||
getTileInfo(blockpos_nodes, p, face_dir, daynight_ratio,
|
getTileInfo(blockpos_nodes, p, face_dir, daynight_ratio,
|
||||||
vmanip, temp_mods, smooth_lighting,
|
vmanip, temp_mods, smooth_lighting,
|
||||||
|
@ -31,7 +31,9 @@ Player::Player():
|
|||||||
touching_ground(false),
|
touching_ground(false),
|
||||||
in_water(false),
|
in_water(false),
|
||||||
in_water_stable(false),
|
in_water_stable(false),
|
||||||
|
is_climbing(false),
|
||||||
swimming_up(false),
|
swimming_up(false),
|
||||||
|
is_frozen(false),
|
||||||
inventory_backup(NULL),
|
inventory_backup(NULL),
|
||||||
craftresult_is_preview(true),
|
craftresult_is_preview(true),
|
||||||
hp(20),
|
hp(20),
|
||||||
|
Loading…
Reference in New Issue
Block a user