mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: entities marked to delete are still not deleted on loadEntities call
This commit is contained in:
parent
8a05f5cf63
commit
904a33418f
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue