Skip to content

Commit 5aa72e0

Browse files
committed
more spawn/clone debug checks
1 parent a8a5113 commit 5aa72e0

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

ROADMAP.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
## Backlog
44

5-
- builders should be rewritten :/
65
- add PREFAB entity trait
76
- is/has_all/any for lists?
87

evolved.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3163,6 +3163,7 @@ __defer_ops[__defer_op.spawn_entity] = function(bytes, index)
31633163
local component_map = bytes[index + 1]
31643164

31653165
if __debug_mode then
3166+
__debug_fns.validate_entity(entity)
31663167
__debug_fns.validate_component_map(component_map)
31673168
end
31683169

@@ -3204,6 +3205,8 @@ __defer_ops[__defer_op.clone_entity] = function(bytes, index)
32043205
local component_map = bytes[index + 2]
32053206

32063207
if __debug_mode then
3208+
__debug_fns.validate_entity(entity)
3209+
__debug_fns.validate_prefab(prefab)
32073210
__debug_fns.validate_component_map(component_map)
32083211
end
32093212

0 commit comments

Comments
 (0)