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:
parent
7775f54054
commit
7bcc3535fd
@ -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() : ""),
|
||||||
|
Loading…
Reference in New Issue
Block a user