fix crash in World.Clear
parent
2bf2128d07
commit
c9643ff0be
|
@ -80,7 +80,7 @@ namespace MoonTools.ECS
|
||||||
|
|
||||||
public void Clear()
|
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)
|
if (storages[i] != null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -145,7 +145,7 @@ namespace MoonTools.ECS
|
||||||
|
|
||||||
public void Clear()
|
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)
|
if (storages[i] != null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue