Fix small but devestating bug for systems without Entities.

This commit is contained in:
bakpakin
2015-03-28 21:03:42 +08:00
parent 17592be9dc
commit e8b4b7f106
+2
View File
@@ -340,11 +340,13 @@ function World:updateSystem(system, dt)
if update then
local entities = self.entities
local eids = systemEntities[system.id]
if eids then
for eid in pairs(eids) do
update(entities[eid], dt)
end
end
end
end
-- World:update()
-- Updates the World, frees Entities that have been marked for freeing, adds