mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2024-11-17 04:44:23 +00:00
Fixed nil entitylist in nocache system
Systems that set nocache to true would fail as the entity list was set to system.world.entityList but should have been system.world.entities.
This commit is contained in:
parent
0f17f116ab
commit
3c4b3a7f68
2
tiny.lua
2
tiny.lua
@ -309,7 +309,7 @@ local function processingSystemUpdate(system, dt)
|
|||||||
|
|
||||||
if process then
|
if process then
|
||||||
if system.nocache then
|
if system.nocache then
|
||||||
local entities = system.world.entityList
|
local entities = system.world.entities
|
||||||
local filter = system.filter
|
local filter = system.filter
|
||||||
if filter then
|
if filter then
|
||||||
for i = 1, #entities do
|
for i = 1, #entities do
|
||||||
|
Loading…
Reference in New Issue
Block a user