Skip to content

Commit

Permalink
Fix 0 position on killed
Browse files Browse the repository at this point in the history
  • Loading branch information
Exouxas committed Oct 14, 2023
1 parent f3b4db1 commit 2ec952a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Core/Worlds/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ protected void Step()
{
foreach (Actor a in _actorsToBeRemoved)
{
Vector3 position = GetPosition(a);

_actors.Remove(a);
positions.Remove(a);
ActorKilled?.Invoke(a, GetPosition(a));
ActorKilled?.Invoke(a, position);
}
_actorsToBeRemoved.Clear();
}
Expand Down

0 comments on commit 2ec952a

Please sign in to comment.