From 74666ca0c3debb575194dcf4d0321d509227cfd1 Mon Sep 17 00:00:00 2001 From: bakpakin Date: Tue, 16 Jun 2015 19:14:26 -0400 Subject: [PATCH] Fix adding inactive Systems. --- tiny.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tiny.lua b/tiny.lua index 751d1f9..0f3e4a0 100644 --- a/tiny.lua +++ b/tiny.lua @@ -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 - system.active = true + if system.active == nil then + system.active = true + end system.modified = true index = #systems + 1 systemIndices[system] = index