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