配置校验
This commit is contained in:
parent
948ce3b409
commit
a58a7ddb0c
@ -449,9 +449,11 @@ func (this *configureComp) GetHeroMaxLv(star int32) int32 {
|
|||||||
|
|
||||||
if v, err := this.GetConfigure(hero_stargrow); err == nil {
|
if v, err := this.GetConfigure(hero_stargrow); err == nil {
|
||||||
if configure, ok := v.(*cfg.GameHeroStargrow); ok {
|
if configure, ok := v.(*cfg.GameHeroStargrow); ok {
|
||||||
|
if configure.Get(star) != nil {
|
||||||
return configure.Get(star).Maxlevel
|
return configure.Get(star).Maxlevel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.module.Errorf(" GetHeroMaxLv err : star:%d", star)
|
this.module.Errorf(" GetHeroMaxLv err : star:%d", star)
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user