aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Player/Player.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 33a05b49c01..cd60f5da86b 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -19013,7 +19013,13 @@ void Player::_LoadInventory(PreparedQueryResult result, PreparedQueryResult arti
item->CopyArtifactDataFromParent(parent);
}
else
- err = EQUIP_ERR_WRONG_BAG_TYPE_3; // send by mail
+ {
+ TC_LOG_ERROR("entities.player", "Player::_LoadInventory: Player '%s' (%s) has child item (%s, entry: %u) which can't be loaded into inventory because parent item was not found (Bag %s, slot: %u). Item will be sent by mail.",
+ GetName().c_str(), GetGUID().ToString().c_str(), item->GetGUID().ToString().c_str(), item->GetEntry(), bagGuid.ToString().c_str(), slot);
+ item->DeleteFromInventoryDB(trans);
+ problematicItems.push_back(item);
+ continue;
+ }
}
// Item is not in bag