how did that happen

This commit is contained in:
GreYFoXGTi 2010-11-14 17:59:28 +02:00
parent 6f75b661b0
commit c6f0bf7500

View file

@ -18,6 +18,7 @@ void CGameTeams::OnCharacterStart(int id) {
int Tick = Server()->Tick();
if(m_Core.Team(id) == TEAM_FLOCK || m_Core.Team(id) == TEAM_SUPER) {
CCharacter* Char = Character(id);
if(!Char) return; // for some reason i had a crash here
Char->m_DDRaceState = DDRACE_STARTED;
Char->m_StartTime = Tick;
Char->m_RefreshTime = Tick;