diff --git a/tiny.lua b/tiny.lua index 63451d1..06ae4cc 100644 --- a/tiny.lua +++ b/tiny.lua @@ -555,7 +555,7 @@ end function tiny.clearSystems(world) local systems = world.systems for i = #systems, 1, -1 do - tiny_removeSystem(world, systems[i].system) + tiny_removeSystem(world, systems[i]) end end