fix: entities marked to delete are still not deleted on loadEntities call

This commit is contained in:
MihailRis 2024-07-15 01:56:45 +03:00
parent 8a05f5cf63
commit 904a33418f

View File

@ -218,6 +218,7 @@ std::optional<Entities::RaycastResult> Entities::rayCast(
}
void Entities::loadEntities(dynamic::Map_sptr root) {
clean();
auto list = root->list("data");
for (size_t i = 0; i < list->size(); i++) {
try {