From e649357d4eaface190f770dd1358f3e59ff39168 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 22 Jul 2022 08:35:56 +0200 Subject: [PATCH] - fixed return values of FTextureAnimator::AddAnim --- src/gamedata/textures/animations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gamedata/textures/animations.cpp b/src/gamedata/textures/animations.cpp index f9570aefd..84d87f113 100644 --- a/src/gamedata/textures/animations.cpp +++ b/src/gamedata/textures/animations.cpp @@ -94,12 +94,12 @@ FAnimDef *FTextureAnimator::AddAnim (FAnimDef& anim) { // Found one! mAnimations[i] = anim; - return &anim; + return &mAnimations[i]; } } // Didn't find one, so add it at the end. mAnimations.Push (anim); - return &anim; + return &mAnimations.Last(); } //==========================================================================