stop anim if anim mid-save expose data fails

This commit is contained in:
c0ffeeeeeeee 2021-03-06 17:10:35 -08:00
parent 54dcac6d73
commit c2ef4c6049
3 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest> <Manifest>
<identifier>Rimworld-Animations</identifier> <identifier>Rimworld-Animations</identifier>
<version>1.0.12</version> <version>1.0.13</version>
</Manifest> </Manifest>

View file

@ -198,7 +198,13 @@ namespace Rimworld_Animations {
if (!isAnimating) return; if (!isAnimating) return;
if (anim == null) {
isAnimating = false;
return;
}
animTicks++; animTicks++;
if (animTicks < anim.animationTimeTicks) { if (animTicks < anim.animationTimeTicks) {
tickStage(); tickStage();
} else { } else {