Skip to content

Commit

Permalink
Merge pull request #724 from Hual/master
Browse files Browse the repository at this point in the history
Clear components in a separate pass to avoid cross-component invalid access
  • Loading branch information
AmyrAhmady authored Sep 22, 2023
2 parents e0253dc + 6be5a20 commit 2553cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/Source/core_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ class ComponentList : public IComponentList
pair.second->onFree(it->second);
});
it->second->free();
it = components.erase(it);
}
components.clear();
}

auto add(IComponent* component)
Expand Down

0 comments on commit 2553cbf

Please sign in to comment.