mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-05-23 15:22:28 +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.
|
// 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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user