We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d092f09 commit a5e60d3Copy full SHA for a5e60d3
Server/Components/NPCs/npcs_impl.cpp
@@ -99,7 +99,7 @@ bool NPCComponent::unlock(int index)
99
void NPCComponent::onTick(Microseconds elapsed, TimePoint now)
100
{
101
// Go through NPCs ready to be destroyed/kicked
102
- auto markedForKick = npcNetwork.getMarkedForKickNPCs();
+ auto& markedForKick = npcNetwork.getMarkedForKickNPCs();
103
for (auto& npc : markedForKick)
104
105
release(npc);
0 commit comments