This commit is contained in:
@@ -337,7 +337,6 @@ func (h Controller) TogglePetBagWarehouse(
|
||||
return result, errorcode.ErrorCodes.ErrSystemError
|
||||
}
|
||||
player.Info.BackupPetList = append(player.Info.BackupPetList[:index], player.Info.BackupPetList[index+1:]...)
|
||||
player.Service.Info.Save(*player.Info)
|
||||
|
||||
case 1:
|
||||
if len(player.Info.PetList) >= 6 && len(player.Info.BackupPetList) >= 6 {
|
||||
@@ -360,7 +359,7 @@ func (h Controller) TogglePetBagWarehouse(
|
||||
player.Info.BackupPetList = append(player.Info.BackupPetList, petInfo.Data)
|
||||
}
|
||||
result.PetInfo = petInfo.Data
|
||||
player.Service.Info.Save(*player.Info)
|
||||
|
||||
}
|
||||
|
||||
if len(player.Info.PetList) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user