mirror of
https://github.com/Ukendio/jecs.git
synced 2026-05-13 14:24:14 +00:00
pull NOOP out of fn
This commit is contained in:
parent
b954588b0e
commit
681065e3e7
1 changed files with 2 additions and 2 deletions
|
|
@ -3310,9 +3310,9 @@ local function world_new(DEBUG: boolean?)
|
||||||
ECS_PAIR_SECOND(nth))
|
ECS_PAIR_SECOND(nth))
|
||||||
end
|
end
|
||||||
|
|
||||||
local function world_targets(world: world, entity: i53, relation: i53): () -> i53?
|
local NOOP = NOOP :: () -> i53
|
||||||
local NOOP = NOOP :: () -> i53
|
|
||||||
|
|
||||||
|
local function world_targets(world: world, entity: i53, relation: i53): () -> i53?
|
||||||
local record = entity_index_try_get_unsafe(entity)
|
local record = entity_index_try_get_unsafe(entity)
|
||||||
if not record then
|
if not record then
|
||||||
return NOOP
|
return NOOP
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue