Skip to content

Commit a5e60d3

Browse files
committed
fix destroyed NPC IDs not being able to be used again
1 parent d092f09 commit a5e60d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server/Components/NPCs/npcs_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ bool NPCComponent::unlock(int index)
9999
void NPCComponent::onTick(Microseconds elapsed, TimePoint now)
100100
{
101101
// Go through NPCs ready to be destroyed/kicked
102-
auto markedForKick = npcNetwork.getMarkedForKickNPCs();
102+
auto& markedForKick = npcNetwork.getMarkedForKickNPCs();
103103
for (auto& npc : markedForKick)
104104
{
105105
release(npc);

0 commit comments

Comments
 (0)