mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-25 15:03:34 +00:00
Update Entity.cpp
This commit is contained in:
parent
451f7e76d7
commit
355f4f4df8
@ -810,7 +810,6 @@ void Entity::Update(const float deltaTime) {
|
||||
|
||||
// Add pending timers to the list of timers so they start next tick.
|
||||
if (!m_PendingTimers.empty()) {
|
||||
// unique_ptrs are not CopyConstructible. Must move an rvalue.
|
||||
this->m_Timers.reserve(m_Timers.size() + m_PendingTimers.size());
|
||||
for (auto& timer : m_PendingTimers) {
|
||||
this->m_Timers.push_back(std::move(timer));
|
||||
|
Loading…
Reference in New Issue
Block a user