fixed a bug when moving animation with m.s == m.t

This commit is contained in:
Zeno Rogue 2020-12-25 06:08:19 +01:00
parent 2a0ef4f30b
commit 68ab6fedc6
1 changed files with 2 additions and 1 deletions

View File

@ -5366,7 +5366,8 @@ EX void animateMovement(const movei& m, int layer) {
if(found_s) {
a = animations[layer][m.s];
a.wherenow = T * a.wherenow;
animations[layer].erase(m.s);
if(m.s != m.t)
animations[layer].erase(m.s);
a.attacking = 0;
}
else {