fixed map not initialized
This commit is contained in:
@@ -347,6 +347,7 @@ func GetMetaStats(dbPlayer *ent.Player) (*MetaStatsResponse, error) {
|
||||
|
||||
mResponse.TieMaps = map[string]float32{}
|
||||
mResponse.WinMaps = map[string]float32{}
|
||||
mResponse.TotalMaps = map[string]int{}
|
||||
|
||||
for tMap, wins := range mapWins {
|
||||
mResponse.WinMaps[tMap] = float32(wins) / float32(mapMatchTotal[tMap])
|
||||
|
Reference in New Issue
Block a user