fix world component releaser

This commit is contained in:
Mikhail 2024-05-01 15:14:36 +08:00
parent a8ce4688bc
commit 91f4f936ff

View File

@ -124,6 +124,10 @@ namespace DCFApixels.DragonECS
}
private static void Release(int worldID)
{
if (_mapping.Length < _worlds.Length)
{
Array.Resize(ref _mapping, _worlds.Length);
}
ref short itemIndex = ref _mapping[worldID];
if (itemIndex != 0)
{