summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-23 00:24:19 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-23 00:24:19 +0300
commit65195837a012da57d9918be119a6434250650b9b (patch)
tree1bc074bd6b0dce9f561bc900d19b664026c1aa81 /src/being.cpp
parent3a600d1d933534f294687d10d63d94a85cd9426a (diff)
downloadplus-65195837a012da57d9918be119a6434250650b9b.tar.gz
plus-65195837a012da57d9918be119a6434250650b9b.tar.bz2
plus-65195837a012da57d9918be119a6434250650b9b.tar.xz
plus-65195837a012da57d9918be119a6434250650b9b.zip
fix crash in new emote code.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index e8f6566f0..66d5249c1 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -2785,6 +2785,7 @@ void Being::setEmote(const uint8_t emotion, const int emote_time)
if (emotionIndex >= 0 && emotionIndex <= EmoteDB::getLast())
{
delete mEmotionSprite;
+ mEmotionSprite = nullptr;
const EmoteInfo *const info = EmoteDB::get2(emotionIndex, true);
if (info)
{