mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 22:37:04 +00:00
Updated to latest PTR build.
This commit is contained in:
parent
32168d697b
commit
393d46f9f6
13 changed files with 103 additions and 46 deletions
|
|
@ -320,8 +320,8 @@ void Item::SaveToDB()
|
|||
} break;
|
||||
case ITEM_REMOVED:
|
||||
{
|
||||
if (GetUInt32Value(ITEM_FIELD_ITEM_TEXT_ID) > 0 )
|
||||
CharacterDatabase.PExecute("DELETE FROM item_text WHERE id = '%u'", GetUInt32Value(ITEM_FIELD_ITEM_TEXT_ID));
|
||||
//if (GetUInt32Value(ITEM_FIELD_ITEM_TEXT_ID) > 0 )
|
||||
// CharacterDatabase.PExecute("DELETE FROM item_text WHERE id = '%u'", GetUInt32Value(ITEM_FIELD_ITEM_TEXT_ID));
|
||||
CharacterDatabase.PExecute("DELETE FROM item_instance WHERE guid = '%u'", guid);
|
||||
if(HasFlag(ITEM_FIELD_FLAGS, ITEM_FLAGS_WRAPPED))
|
||||
CharacterDatabase.PExecute("DELETE FROM character_gifts WHERE item_guid = '%u'", GetGUIDLow());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue