Skip to content

Commit

Permalink
Update turret.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-Chara committed Feb 17, 2024
1 parent 9ed9555 commit 633a714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/server/entities/turret.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ CTurret::CTurret(CGameWorld *pGameWorld, vec2 Pos, int Owner, int Type, vec2 Pos

void CTurret::Reset()
{
GameServer()->m_World.DestroyEntity(this);
for (unsigned i = 0; i < sizeof(m_inIDs) / sizeof(int); i ++)
{
if(m_inIDs[i])
Expand All @@ -58,6 +57,7 @@ void CTurret::Reset()
else if (m_Type == WEAPON_SHOTGUN)
GameServer()->GetPlayerChar(m_Owner)->m_TurretActive[1] = false;
}
GameServer()->m_World.DestroyEntity(this);
}

void CTurret::Tick()
Expand Down

0 comments on commit 633a714

Please sign in to comment.