mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-19 02:24:37 +08:00
fix world component releaser
This commit is contained in:
parent
a8ce4688bc
commit
91f4f936ff
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user