From bc59c185033c1d71d37da81261b72bd93f24e10c Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 16 May 2011 19:54:08 +0300 Subject: [PATCH] Fixed two compiler warnings --- src/player.cpp | 4 ++-- src/server.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/player.cpp b/src/player.cpp index e568d7de..3f92e899 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -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(""); resetInventory(); diff --git a/src/server.cpp b/src/server.cpp index d3ca32ac..6c57daa5 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -2231,7 +2231,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id) // Mandatory parameter; actually used for nothing core::map modified_blocks; - u8 material; + u8 material = CONTENT_IGNORE; u8 mineral = MINERAL_NONE; bool cannot_remove_node = false; -- 2.30.2