Explicitly set m_LastSetTeam to zero

It is compared to 0 in gamecontext.cpp but it is never explicitly set to 0.

```C++
if(pPlayer->GetTeam() == pMsg->m_Team || (g_Config.m_SvSpamprotection && pPlayer->m_LastSetTeam && pPlayer->m_LastSetTeam + Server()->TickSpeed() * g_Config.m_SvTeamChangeDelay > Server()->Tick()))
	return;
```
This commit is contained in:
ChillerDragon 2024-10-01 13:53:29 +08:00
parent e8798a9e2f
commit 547a9a0285

View file

@ -48,6 +48,7 @@ void CPlayer::Reset()
m_SpectatorId = SPEC_FREEVIEW;
m_LastActionTick = Server()->Tick();
m_TeamChangeTick = Server()->Tick();
m_LastSetTeam = 0;
m_LastInvited = 0;
m_WeakHookSpawn = false;