aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-19 22:46:18 -0600
committermegamage <none@none>2008-12-19 22:46:18 -0600
commitd7c37e157a37cb4bdfc7bec99796021f502c8e1f (patch)
tree175c43d2524b1065cb4d813b5bdfeab27abb390f /src/game/Player.cpp
parent8545728daa656e1c6458fdefcdedfbd1a06dfcf9 (diff)
*Fix a bug that causes crash when player data is corrupted. By Rognar.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 5ec5cbc1c19..e3e98805ceb 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -473,7 +473,7 @@ Player::~Player ()
for(BoundInstancesMap::iterator itr = m_boundInstances[i].begin(); itr != m_boundInstances[i].end(); ++itr)
itr->second.save->RemovePlayer(this);
- if (isPossessing())
+ if (m_uint32Values && isPossessing())
RemovePossess(false);
delete m_declinedname;