Fix various memory access problems detected by valgrind
This commit is contained in:
@@ -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),
|
||||
|
Reference in New Issue
Block a user