From 65195837a012da57d9918be119a6434250650b9b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Apr 2013 00:24:19 +0300 Subject: fix crash in new emote code. --- src/being.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/being.cpp') 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) { -- cgit v1.2.3-70-g09d2