Fix #22 - manage systems before setSystemIndex

This commit is contained in:
Calvin Rose
2020-08-12 08:28:57 -05:00
parent e095e10d44
commit afd7d326d7
3 changed files with 19 additions and 0 deletions
+1
View File
@@ -821,6 +821,7 @@ end
-- the order in which they Systems processed, because lower indexed Systems are
-- processed first. Returns the old system.index.
function tiny.setSystemIndex(world, system, index)
tiny_manageSystems(world)
local oldIndex = system.index
local systems = world.systems