SoundSystem bug fix

This commit is contained in:
stiffly
2016-02-22 17:39:59 +01:00
parent 845a30ed0f
commit e5ff88d3c9
+3
View File
@@ -90,6 +90,9 @@ bool SoundSystem::drumTimer(double dt)
bool SoundSystem::OnCaptured(const Events::Captured & e)
{
if (!LocalPlayer.Valid()) {
return false;
}
int homeTeam = (int)m_World->GetComponent(e.CapturePointID, "Team")["Team"];
int team = (int)m_World->GetComponent(LocalPlayer.ID, "Team")["Team"];
Events::PlaySoundOnEntity ev;