Cpp11 initializers: last src root changeset (#6022)
[oweals/minetest.git] / src / player.cpp
index 9c321d57192faba116f9516c7914b14ce5604f3d..53e1734981da2b227fc78b846af591e884c0b53f 100644 (file)
@@ -30,16 +30,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 
 Player::Player(const char *name, IItemDefManager *idef):
-       inventory(idef),
-       peer_id(PEER_ID_INEXISTENT),
-       keyPressed(0),
-// protected
-       m_speed(0,0,0)
+       inventory(idef)
 {
        strlcpy(m_name, name, PLAYERNAME_SIZE);
 
        inventory.clear();
        inventory.addList("main", PLAYER_INVENTORY_SIZE);
+       inventory.addList("hand", 1);
        InventoryList *craft = inventory.addList("craft", 9);
        craft->setWidth(3);
        inventory.addList("craftpreview", 1);