summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
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)
{