修复一些小问题

This commit is contained in:
UnKownOwO
2022-11-24 11:56:37 +08:00
parent 01bcaa0309
commit 6dd7cb3f43
3088 changed files with 26 additions and 91314 deletions

View File

@@ -3,6 +3,7 @@ package model
import (
gdc "hk4e/gs/config"
"hk4e/gs/constant"
"hk4e/logger"
"time"
)
@@ -84,7 +85,11 @@ func (p *Player) AddAvatar(avatarId uint32) {
} else {
skillDepotId = avatarDataConfig.SkillDepotId
}
avatarSkillDepotDataConfig := gdc.CONF.AvatarSkillDepotDataMap[skillDepotId]
avatarSkillDepotDataConfig, ok := gdc.CONF.AvatarSkillDepotDataMap[skillDepotId]
if !ok {
logger.LOG.Error("avatarSkillDepotDataConfig error, skillDepotId: %v", skillDepotId)
return
}
avatar := &Avatar{
AvatarId: avatarId,
Level: 1,