Fixed two compiler warnings
authorPerttu Ahola <celeron55@gmail.com>
Mon, 16 May 2011 16:54:08 +0000 (19:54 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 16 May 2011 16:54:08 +0000 (19:54 +0300)
src/player.cpp
src/server.cpp

index e568d7deef430cf409e68b602e2265b349c69023..3f92e899c27ac2ed832104f6ecabaee847167f47 100644 (file)
@@ -79,12 +79,12 @@ Player::Player():
        swimming_up(false),
        craftresult_is_preview(true),
        hp(20),
+       privs(PRIV_DEFAULT),
        peer_id(PEER_ID_INEXISTENT),
        m_pitch(0),
        m_yaw(0),
        m_speed(0,0,0),
-       m_position(0,0,0),
-       privs(PRIV_DEFAULT)
+       m_position(0,0,0)
 {
        updateName("<not set>");
        resetInventory();
index d3ca32ac7d1a7473de3851da8e78cf8165075226..6c57daa5c1b660cbfe595a4dc68f9918c1d596f9 100644 (file)
@@ -2231,7 +2231,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
                        // Mandatory parameter; actually used for nothing
                        core::map<v3s16, MapBlock*> modified_blocks;
 
-                       u8 material;
+                       u8 material = CONTENT_IGNORE;
                        u8 mineral = MINERAL_NONE;
 
                        bool cannot_remove_node = false;