mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Scripts/Commands): Fix crash when using additem from console (#18559)
This commit is contained in:
@@ -1692,7 +1692,7 @@ public:
|
||||
|
||||
Item* item = playerTarget->StoreNewItem(dest, itemId, true);
|
||||
|
||||
Player* p = handler->GetSession()->GetPlayer();
|
||||
Player* p = handler->GetSession() ? handler->GetSession()->GetPlayer() : nullptr;
|
||||
// remove binding (let GM give it to another player later)
|
||||
if (p && p == playerTarget)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user