Archived
1

Fix for non-finding weapons

This commit is contained in:
2018-01-30 18:41:23 +04:00
parent 78c882347d
commit 7bcaca66aa
2 changed files with 7 additions and 2 deletions

View File

@@ -247,7 +247,11 @@ func (u *Users) ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Playe
profileRaw.Exp = expInt
profileRaw.EggExp = eggexpInt
profileRaw.Power = powerInt
profileRaw.WeaponID = weaponRaw.ID
if weaponRaw != nil {
profileRaw.WeaponID = weaponRaw.ID
} else {
profileRaw.WeaponID = 0
}
profileRaw.Crystalls = crystallsInt
profileRaw.CreatedAt = time.Now().UTC()