From e77da430c7573114a647bc84b105ea7446c68f5d Mon Sep 17 00:00:00 2001 From: insunaa Date: Wed, 18 Dec 2024 21:47:37 +0100 Subject: [PATCH] SpawnManager: Fix typo causing deferredSpawns to be ignored --- src/game/Maps/SpawnManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/Maps/SpawnManager.cpp b/src/game/Maps/SpawnManager.cpp index 6d059e6f256..44cfcb1ae01 100644 --- a/src/game/Maps/SpawnManager.cpp +++ b/src/game/Maps/SpawnManager.cpp @@ -255,8 +255,8 @@ void SpawnManager::Update() m_updated = true; if (!m_deferredSpawns.empty()) // cannot insert during update { - m_spawns.reserve(m_spawns.size() + m_spawns.size()); - std::move(std::begin(m_deferredSpawns), std::end(m_deferredSpawns), std::back_inserter(m_deferredSpawns)); + m_spawns.reserve(m_spawns.size() + m_deferredSpawns.size()); + std::move(std::begin(m_deferredSpawns), std::end(m_deferredSpawns), std::back_inserter(m_spawns)); m_deferredSpawns.clear(); } auto now = m_map.GetCurrentClockTime();