diff --git a/modules/hero/module.go b/modules/hero/module.go index bfa7f0aba..849b1e8b1 100644 --- a/modules/hero/module.go +++ b/modules/hero/module.go @@ -669,7 +669,7 @@ func (this *Hero) GetAllMaxHero(session comm.IUserSession) (code pb.ErrorCode) { for i := 1; ; i++ { data := this.configure.GetHeroAwakenConfig(cid, int32(i)) if data == nil { - maxJux = i + maxJux = i - 1 break } }