diff options
author | madmaxoft <github@xoft.cz> | 2013-08-14 19:11:54 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-14 19:11:54 +0200 |
commit | 17b2353d71c405bc626de22e5467d13be792c317 (patch) | |
tree | 6684622247b5c921439bffec3671582cc67fd499 /source/Player.cpp | |
parent | Fixed crashes in world's clientlist manipulators (diff) | |
download | cuberite-17b2353d71c405bc626de22e5467d13be792c317.tar cuberite-17b2353d71c405bc626de22e5467d13be792c317.tar.gz cuberite-17b2353d71c405bc626de22e5467d13be792c317.tar.bz2 cuberite-17b2353d71c405bc626de22e5467d13be792c317.tar.lz cuberite-17b2353d71c405bc626de22e5467d13be792c317.tar.xz cuberite-17b2353d71c405bc626de22e5467d13be792c317.tar.zst cuberite-17b2353d71c405bc626de22e5467d13be792c317.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Player.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/Player.cpp b/source/Player.cpp index 34980d2f6..a1ea631aa 100644 --- a/source/Player.cpp +++ b/source/Player.cpp @@ -112,6 +112,9 @@ cPlayer::~cPlayer(void) { LOGD("Deleting cPlayer \"%s\" at %p, ID %d", m_PlayerName.c_str(), this, GetUniqueID()); + // Notify the server that the player is being destroyed + cRoot::Get()->GetServer()->PlayerDestroying(this); + SaveToDisk(); m_World->RemovePlayer( this ); |