diff options
Diffstat (limited to 'src/resources/emotedb.cpp')
-rw-r--r-- | src/resources/emotedb.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/resources/emotedb.cpp b/src/resources/emotedb.cpp index 7e923c034..0492cb848 100644 --- a/src/resources/emotedb.cpp +++ b/src/resources/emotedb.cpp @@ -237,6 +237,15 @@ const AnimatedSprite *EmoteDB::getAnimation2(int id, const bool allowNull) return getAnimation(id, allowNull); } +AnimatedSprite *EmoteDB::getClone(int id, const bool allowNull) +{ + const AnimatedSprite *const sprite = getAnimation2(id, allowNull); + if (sprite) + return AnimatedSprite::clone(sprite); + + return nullptr; +} + const EmoteSprite *EmoteDB::getSprite(const int id, const bool allowNull) { const EmoteInfo *const info = get(id, allowNull); |