diff --git a/server/gamesapi/service/sapi_forward.go b/server/gamesapi/service/sapi_forward.go index 04b8e8be..45027915 100644 --- a/server/gamesapi/service/sapi_forward.go +++ b/server/gamesapi/service/sapi_forward.go @@ -39,7 +39,7 @@ func (this *sApiForward) init() { for i := 0; i < len(this.userCache); i++ { p := new(SApiForwardLockCache) p.lock = new(sync.Mutex) - p.userHash = new(map[string]*SApiForwardLock) + p.userHash = &map[string]*SApiForwardLock{} this.userCache[i] = p } }