diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-20 22:10:46 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-09-20 22:10:46 +0200 |
commit | fdf83870925d30560ec7f853fdc19ec6c9e29155 (patch) | |
tree | db4a9743f510da5409b91482be5d174c028ac794 /source/cPlayer.cpp | |
parent | Refactored windows. (diff) | |
download | cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.gz cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.bz2 cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.lz cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.xz cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.tar.zst cuberite-fdf83870925d30560ec7f853fdc19ec6c9e29155.zip |
Diffstat (limited to 'source/cPlayer.cpp')
-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); } |