mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2026-07-21 23:56:50 -06: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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user