Core/Movement: Fixed a crash

This commit is contained in:
hondacrx
2022-06-23 15:57:23 -04:00
parent b8ab80bfcc
commit d4f5f39a46
+1 -1
View File
@@ -841,7 +841,7 @@ namespace Game.Entities
public void UpdateMountCapability()
{
var mounts = GetAuraEffectsByType(AuraType.Mounted);
foreach (AuraEffect aurEff in mounts)
foreach (AuraEffect aurEff in mounts.ToArray())
{
aurEff.RecalculateAmount();
if (aurEff.GetAmount() == 0)