Fix adding inactive Systems.

This commit is contained in:
bakpakin
2015-06-16 19:14:26 -04:00
parent 5978ace463
commit 74666ca0c3
+3 -1
View File
@@ -23,7 +23,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-- @author Calvin Rose
-- @license MIT
-- @copyright 2015
local tiny = { _VERSION = "1.1-3" }
local tiny = { _VERSION = "scm" }
-- Local versions of standard lua functions
local tinsert = table.insert
@@ -505,7 +505,9 @@ function tiny_manageSystems(world)
entityIndices = {}
system.entities = entityList
system.indices = entityIndices
if system.active == nil then
system.active = true
end
system.modified = true
index = #systems + 1
systemIndices[system] = index