fix crash in World.Clear

set_order
cosmonaut 2023-07-27 14:53:33 -07:00
parent 2bf2128d07
commit c9643ff0be
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ namespace MoonTools.ECS
public void Clear()
{
for (var i = 0; i < ComponentTypeIndices.Count; i += 1)
for (var i = 0; i < storages.Length; i += 1)
{
if (storages[i] != null)
{

View File

@ -145,7 +145,7 @@ namespace MoonTools.ECS
public void Clear()
{
for (var i = 0; i < RelationTypeIndices.Count; i += 1)
for (var i = 0; i < storages.Length; i += 1)
{
if (storages[i] != null)
{