Fix inventory glitch when connecting as new user
authorKahrl <kahrl@gmx.net>
Sat, 14 Jan 2012 10:05:24 +0000 (11:05 +0100)
committerKahrl <kahrl@gmx.net>
Sat, 14 Jan 2012 10:05:24 +0000 (11:05 +0100)
src/serverremoteplayer.cpp

index db4b44707905d0b28363b225e26c6c7e678667d5..b4dbbdb1b0663f7d9abd45b972079c247e8252ce 100644 (file)
@@ -46,6 +46,7 @@ ServerRemotePlayer::ServerRemotePlayer(ServerEnvironment *env, v3f pos_, u16 pee
        ServerActiveObject(env, pos_),
        m_last_good_position(0,0,0),
        m_last_good_position_age(0),
+       m_wield_index(0),
        m_inventory_not_sent(false),
        m_hp_not_sent(false),
        m_is_in_environment(false),