Fix bug with deactivating Systems. Add test.

This commit is contained in:
bakpakin
2015-03-30 15:22:23 +08:00
parent 22daad2b26
commit c5c27c679c
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -389,7 +389,7 @@ end
-- @param system A System in the World activate/deactivate
-- @param active Boolean new state of the System
function tiny.setSystemActive(world, system, active)
world.activeSystem[system] = active and true or nil
world.activeSystems[system] = active and true or nil
end
return tiny