mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-02 22:01:41 +00:00
- fixed return values of FTextureAnimator::AddAnim
This commit is contained in:
parent
f4f701a45c
commit
e649357d4e
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue