From 56987f001a4cb3652b072035f1a79a52e21c17cf Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Tue, 6 Feb 2018 13:53:19 +0400 Subject: [PATCH] Fixing error with chats statistics --- lib/statistics/squads.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/statistics/squads.go b/lib/statistics/squads.go index 2d293ec..ea0cf91 100644 --- a/lib/statistics/squads.go +++ b/lib/statistics/squads.go @@ -30,10 +30,12 @@ func (s *Statistics) SquadStatictics(squadID int) string { playerRaw, err := c.DataCache.GetPlayerByID(squadMembers[i].PlayerID) if err != nil { c.Log.Error(err.Error()) + continue } profileRaw, err := c.DataCache.GetProfileByPlayerID(playerRaw.ID) if err != nil { c.Log.Error(err.Error()) + continue } fullInfo.Squad = squad