summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-09 00:05:18 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-09 00:05:18 +0300
commit3f31d4f379f2baa5ae98f3a5f551307735820fa3 (patch)
tree280bb5cf26dcfa04dc7bb21ebdcf5b6f9816ad0b /src/being.cpp
parent0cb852ac8e4a977d8ca74c2ae895ab132436754a (diff)
downloadmv-3f31d4f379f2baa5ae98f3a5f551307735820fa3.tar.gz
mv-3f31d4f379f2baa5ae98f3a5f551307735820fa3.tar.bz2
mv-3f31d4f379f2baa5ae98f3a5f551307735820fa3.tar.xz
mv-3f31d4f379f2baa5ae98f3a5f551307735820fa3.zip
Fix updating local player status.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 0b4ac3ccd..d8e3119b5 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -1793,6 +1793,9 @@ bool Being::updateFromCache()
void Being::addToCache()
{
+ if (player_node == this)
+ return;
+
BeingCacheEntry *entry = Being::getCacheEntry(getId());
if (!entry)
{