diff options
Diffstat (limited to '')
-rw-r--r-- | source/cPlayer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index 1d2774dbf..e0d1eef6e 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -64,6 +64,7 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName) m_InventoryWindow = new cInventoryWindow(*this); m_CurrentWindow = m_InventoryWindow; + m_InventoryWindow->OpenedByPlayer(*this); SetMaxHealth(20); m_MaxFoodLevel = 20; @@ -110,6 +111,8 @@ cPlayer::~cPlayer(void) m_ClientHandle = NULL; + delete m_InventoryWindow; + LOG("Player %p deleted", this); } |