1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix various memory access problems detected by valgrind

This commit is contained in:
Kahrl 2013-08-07 19:48:31 +02:00
parent 218f82f798
commit 2ed3067bbe
4 changed files with 9 additions and 1 deletions

View file

@ -34,9 +34,13 @@ Player::Player(IGameDef *gamedef):
is_climbing(false),
swimming_vertical(false),
camera_barely_in_ceiling(false),
light(0),
inventory(gamedef->idef()),
hp(PLAYER_MAX_HP),
hurt_tilt_timer(0),
hurt_tilt_strength(0),
peer_id(PEER_ID_INEXISTENT),
keyPressed(0),
// protected
m_gamedef(gamedef),
m_breath(-1),