Address timers being iterated through poorly (#646)

* Fix timers

* Update Entity.cpp

* Fix timers

Fix timers

Remove debug logs

remove _dynamic

* I like to move it move it
This commit is contained in:
David Markowitz
2022-07-16 18:21:35 -07:00
committed by GitHub
parent df0f11c95b
commit f5ae5aa13e
2 changed files with 20 additions and 7 deletions

View File

@@ -309,6 +309,7 @@ protected:
std::unordered_map<int32_t, Component*> m_Components; //The int is the ID of the component
std::vector<EntityTimer*> m_Timers;
std::vector<EntityTimer*> m_PendingTimers;
std::vector<EntityCallbackTimer*> m_CallbackTimers;
bool m_ShouldDestroyAfterUpdate = false;