Core: Append single character to stream as character, not as a string
This commit is contained in:
@@ -330,7 +330,7 @@ void Item::SaveToDB(SQLTransaction& trans)
|
||||
|
||||
std::ostringstream ssSpells;
|
||||
for (uint8 i = 0; i < MAX_ITEM_PROTO_SPELLS; ++i)
|
||||
ssSpells << GetSpellCharges(i) << " ";
|
||||
ssSpells << GetSpellCharges(i) << ' ';
|
||||
stmt->setString(++index, ssSpells.str());
|
||||
|
||||
stmt->setUInt32(++index, GetUInt32Value(ITEM_FIELD_FLAGS));
|
||||
@@ -338,9 +338,9 @@ void Item::SaveToDB(SQLTransaction& trans)
|
||||
std::ostringstream ssEnchants;
|
||||
for (uint8 i = 0; i < MAX_ENCHANTMENT_SLOT; ++i)
|
||||
{
|
||||
ssEnchants << GetEnchantmentId(EnchantmentSlot(i)) << " ";
|
||||
ssEnchants << GetEnchantmentDuration(EnchantmentSlot(i)) << " ";
|
||||
ssEnchants << GetEnchantmentCharges(EnchantmentSlot(i)) << " ";
|
||||
ssEnchants << GetEnchantmentId(EnchantmentSlot(i)) << ' ';
|
||||
ssEnchants << GetEnchantmentDuration(EnchantmentSlot(i)) << ' ';
|
||||
ssEnchants << GetEnchantmentCharges(EnchantmentSlot(i)) << ' ';
|
||||
}
|
||||
stmt->setString(++index, ssEnchants.str());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user