diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-23 00:24:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-23 00:24:19 +0300 |
commit | 65195837a012da57d9918be119a6434250650b9b (patch) | |
tree | 1bc074bd6b0dce9f561bc900d19b664026c1aa81 | |
parent | 3a600d1d933534f294687d10d63d94a85cd9426a (diff) | |
download | manaplus-65195837a012da57d9918be119a6434250650b9b.tar.gz manaplus-65195837a012da57d9918be119a6434250650b9b.tar.bz2 manaplus-65195837a012da57d9918be119a6434250650b9b.tar.xz manaplus-65195837a012da57d9918be119a6434250650b9b.zip |
fix crash in new emote code.
-rw-r--r-- | src/being.cpp | 1 |
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) { |