diff --git a/src/core/common/avatarmanager.cpp b/src/core/common/avatarmanager.cpp index e9e4b47e..75dda9a2 100644 --- a/src/core/common/avatarmanager.cpp +++ b/src/core/common/avatarmanager.cpp @@ -107,7 +107,7 @@ AvatarManager::AddSingleAvatar(const std::string &fileName) if (!fileName.empty() && !tmpFileName.empty()) { - unsigned outFileSize; + unsigned outFileSize = 0; AvatarFileType outFileType; boost::shared_ptr tmpFileState = OpenAvatarFileForChunkRead(tmpFileName, outFileSize, outFileType); @@ -192,7 +192,7 @@ int AvatarManager::AvatarFileToNetPackets(const string &fileName, unsigned requestId, NetPacketList &packets) { int retVal = ERR_NET_INVALID_AVATAR_FILE; - unsigned fileSize; + unsigned fileSize = 0; AvatarFileType fileType; boost::shared_ptr tmpState = OpenAvatarFileForChunkRead(fileName, fileSize, fileType); if (tmpState.get() && fileSize && fileType != AVATAR_FILE_TYPE_UNKNOWN) diff --git a/src/engine/local_engine/localboard.cpp b/src/engine/local_engine/localboard.cpp index ca2647df..1f3883d0 100755 --- a/src/engine/local_engine/localboard.cpp +++ b/src/engine/local_engine/localboard.cpp @@ -27,7 +27,7 @@ using namespace std; -LocalBoard::LocalBoard(unsigned dp) : BoardInterface(), pot(0), sets(0), dealerPosition(dp), allInCondition(false) +LocalBoard::LocalBoard(unsigned dp) : BoardInterface(), pot(0), sets(0), dealerPosition(dp), allInCondition(false), lastActionPlayer(0) { myCards[0] = myCards[1] = myCards[2] = myCards[3] = myCards[4] = 0; } diff --git a/src/engine/network_engine/clientboard.cpp b/src/engine/network_engine/clientboard.cpp index e1f61692..de30217f 100644 --- a/src/engine/network_engine/clientboard.cpp +++ b/src/engine/network_engine/clientboard.cpp @@ -24,7 +24,7 @@ using namespace std; ClientBoard::ClientBoard(unsigned dp) -: pot(0), sets(0), dealerPosition(dp) +: pot(0), sets(0), dealerPosition(dp), allInCondition(false), lastActionPlayer(0) { myCards[0] = myCards[1] = myCards[2] = myCards[3] = myCards[4] = 0; } diff --git a/src/playerdata.cpp b/src/playerdata.cpp index f971cc03..7bcdbb6b 100644 --- a/src/playerdata.cpp +++ b/src/playerdata.cpp @@ -27,9 +27,10 @@ PlayerData::PlayerData(unsigned uniqueId, int number, PlayerType type, PlayerRig } PlayerData::PlayerData(const PlayerData &other) -: m_uniqueId(other.GetUniqueId()), m_number(other.GetNumber()), m_name(other.GetName()), - m_avatarFile(other.GetAvatarFile()), m_type(other.GetType()), m_rights(other.GetRights()), - m_isGameAdmin(other.IsGameAdmin()), m_netSessionData(other.GetNetSessionData()) +: m_uniqueId(other.GetUniqueId()), m_dbId(other.GetDBId()), m_number(other.GetNumber()), m_name(other.GetName()), + m_password(), m_country(other.GetCountry()), m_avatarFile(other.GetAvatarFile()), m_avatarMD5(other.GetAvatarMD5()), + m_type(other.GetType()), m_rights(other.GetRights()), m_isGameAdmin(other.IsGameAdmin()), + m_netSessionData(other.GetNetSessionData()), m_netAvatarFile() { }