diff options
-rw-r--r-- | src/player.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/player.cpp b/src/player.cpp index 31415b6b2..3d4c98264 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -277,6 +277,9 @@ LocalPlayer::LocalPlayer(): m_sneak_node(32767,32767,32767), m_sneak_node_exists(false) { + // Initialize hp to 0, so that no hearts will be shown if server + // doesn't support health points + hp = 0; } LocalPlayer::~LocalPlayer() |