Skip to content

Commit

Permalink
SpawnManager: Fix typo causing deferredSpawns to be ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Dec 18, 2024
1 parent ad78609 commit e77da43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Maps/SpawnManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e77da43

Please sign in to comment.