1
0

Initialize m_bIsInBed in cPlayer constructor.

This fixes an issue where the return value from the IsInBed method of
the cPlayer class in the lua API would not return a boolean value.
This commit is contained in:
sgtbigman 2016-10-08 00:47:15 -04:00
parent 7775f54054
commit 7bcc3535fd
No known key found for this signature in database
GPG Key ID: E18902C91591F112

View File

@ -84,6 +84,7 @@ cPlayer::cPlayer(cClientHandlePtr a_Client, const AString & a_PlayerName) :
m_BowCharge(0), m_BowCharge(0),
m_FloaterID(cEntity::INVALID_ID), m_FloaterID(cEntity::INVALID_ID),
m_Team(nullptr), m_Team(nullptr),
m_bIsInBed(false),
m_TicksUntilNextSave(PLAYER_INVENTORY_SAVE_INTERVAL), m_TicksUntilNextSave(PLAYER_INVENTORY_SAVE_INTERVAL),
m_bIsTeleporting(false), m_bIsTeleporting(false),
m_UUID((a_Client != nullptr) ? a_Client->GetUUID() : ""), m_UUID((a_Client != nullptr) ? a_Client->GetUUID() : ""),