From 3e60d2dff2f353db7d64fff79002db0b49ee1643 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Tue, 27 Feb 2024 15:48:00 -0800 Subject: [PATCH] reset entity tag on Destroy --- src/World.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/World.cs b/src/World.cs index bcaedf6..3e2e985 100644 --- a/src/World.cs +++ b/src/World.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using MoonTools.ECS.Collections; @@ -150,6 +150,8 @@ public class World : IDisposable // recycle ID EntityIdAssigner.Unassign(entity.ID); + + EntityTags[(int) entity.ID] = ""; } // COMPONENTS