Report for entity remove failure
This commit is contained in:
parent
5994c37b52
commit
669fb374d7
|
|
@ -60,7 +60,7 @@ extension Nexus {
|
||||||
public func destroy(entity: Entity) -> Bool {
|
public func destroy(entity: Entity) -> Bool {
|
||||||
let entityId: EntityIdentifier = entity.identifier
|
let entityId: EntityIdentifier = entity.identifier
|
||||||
guard has(entity: entityId) else {
|
guard has(entity: entityId) else {
|
||||||
assert(false, "EntityRemove failure: no entity \(entityId) to remove")
|
report("EntityRemove failure: no entity \(entityId) to remove")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue