Fix error trying to find reorder for anim not found
This commit is contained in:
parent
138ac25019
commit
5bd9bf0ca7
Binary file not shown.
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue