[Bug Fix] Fix Character Recast Type -1 saving to database. (#1598)

This commit is contained in:
Kinglykrab
2021-10-16 15:10:42 -04:00
committed by GitHub
parent 5d522b149b
commit 07d96ad921
3 changed files with 17 additions and 8 deletions
+1 -1
View File
@@ -482,7 +482,7 @@ namespace EQ
uint32 Haste;
uint32 DamageShield;
uint32 RecastDelay;
uint32 RecastType;
int RecastType;
uint32 AugDistiller;
bool Attuneable;
bool NoPet;
+1 -1
View File
@@ -1118,7 +1118,7 @@ void SharedDatabase::LoadItems(void *data, uint32 size, int32 items, uint32 max_
item.Haste = (uint32)atoul(row[ItemField::haste]);
item.DamageShield = (uint32)atoul(row[ItemField::damageshield]);
item.RecastDelay = (uint32)atoul(row[ItemField::recastdelay]);
item.RecastType = (uint32)atoul(row[ItemField::recasttype]);
item.RecastType = (int)atoi(row[ItemField::recasttype]);
item.GuildFavor = (uint32)atoul(row[ItemField::guildfavor]);
item.AugDistiller = (uint32)atoul(row[ItemField::augdistiller]);
item.Attuneable = (atoi(row[ItemField::attuneable]) == 0) ? false : true;