Don't call Item::AddToUpdateQueueOf if no player is specified as parameter for Item::SetState, since in this case, only data stored in the item_instance table is altered, not that of character_inventory.
--HG-- branch : trunk
This commit is contained in:
+4
-2
@@ -625,11 +625,13 @@ void Item::SetState(ItemUpdateState state, Player *forplayer)
|
|||||||
delete this;
|
delete this;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state != ITEM_UNCHANGED)
|
if (state != ITEM_UNCHANGED)
|
||||||
{
|
{
|
||||||
// new items must stay in new state until saved
|
// new items must stay in new state until saved
|
||||||
if (uState != ITEM_NEW) uState = state;
|
if (uState != ITEM_NEW)
|
||||||
|
uState = state;
|
||||||
|
|
||||||
|
if (forplayer)
|
||||||
AddToUpdateQueueOf(forplayer);
|
AddToUpdateQueueOf(forplayer);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user