aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-12-30 15:45:37 +0100
committerShauren <shauren.trinity@gmail.com>2023-12-30 15:45:37 +0100
commit4dce6ab228c54319032b346d2d791262eac3d9cd (patch)
tree27049cf934572481a3f661461ee2add586313df2 /src/server/scripts
parentf26a93a8c1bd0a7c3c3c3362f29ec809fb96a68b (diff)
Core/Quests: Implemented QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM that makes required items not be stored in inventory
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Commands/cs_misc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp
index 30504875544..7e9a54e2879 100644
--- a/src/server/scripts/Commands/cs_misc.cpp
+++ b/src/server/scripts/Commands/cs_misc.cpp
@@ -1529,6 +1529,8 @@ public:
Item* item = playerTarget->StoreNewItem(dest, itemTemplatePair.first, true, {}, GuidSet(), itemContext,
bonusListIDsForItem.empty() ? nullptr : &bonusListIDsForItem);
+ if (!item)
+ continue;
// remove binding (let GM give it to another player later)
if (player == playerTarget)