diff --git a/server/imserver/cache/user_profile.go b/server/imserver/cache/user_profile.go index 591fcc25..d7889f88 100644 --- a/server/imserver/cache/user_profile.go +++ b/server/imserver/cache/user_profile.go @@ -35,7 +35,8 @@ func (this *userProfile) fillMFUser(pbUser *cs.MFUser) { } pbUser.Rank = proto.Int32(this.rank) { - if GetPlayerMgr().GetPlayerByAccountId(this.accountId) != nil { + hum := GetPlayerMgr().GetPlayerByAccountId(this.accountId) + if hum != nil { pbUser.OnlineStatus = proto.Int32(1) } else { pbUser.OnlineStatus = proto.Int32(0)