Fixed saving new items to database, thx GMKretol for spotting the typo
--HG-- branch : trunk
This commit is contained in:
@@ -334,8 +334,8 @@ void Item::SaveToDB()
|
|||||||
|
|
||||||
ss << "'," << GetItemRandomPropertyId() << ",";
|
ss << "'," << GetItemRandomPropertyId() << ",";
|
||||||
ss << GetUInt32Value(ITEM_FIELD_DURABILITY) << ",";
|
ss << GetUInt32Value(ITEM_FIELD_DURABILITY) << ",";
|
||||||
ss << GetUInt32Value(ITEM_FIELD_CREATE_PLAYED_TIME) << ",";
|
ss << GetUInt32Value(ITEM_FIELD_CREATE_PLAYED_TIME) << ",'";
|
||||||
ss << ",'" << text << "')";
|
ss << text << "')";
|
||||||
|
|
||||||
CharacterDatabase.Execute(ss.str().c_str());
|
CharacterDatabase.Execute(ss.str().c_str());
|
||||||
}break;
|
}break;
|
||||||
|
|||||||
Reference in New Issue
Block a user