Fix error trying to find reorder for anim not found

This commit is contained in:
c0ffee 2024-05-16 19:59:23 -07:00
parent 138ac25019
commit 5bd9bf0ca7
2 changed files with 2 additions and 2 deletions

View file

@ -95,8 +95,8 @@ namespace Rimworld_Animations {
.OrderBy(_ => Rand.Int)
.TryMaxBy((GroupAnimationDef x) => x.Priority(participants), out GroupAnimationDef result);
reorder = result.Reorder(participants);
reorder = result != null ? result.Reorder(participants) : 0;
return result;
}