diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game-server/inventory.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game-server/inventory.cpp b/src/game-server/inventory.cpp index 532b3f42..66880794 100644 --- a/src/game-server/inventory.cpp +++ b/src/game-server/inventory.cpp @@ -210,6 +210,10 @@ unsigned int Inventory::insert(unsigned int itemId, unsigned int amount) break; } + ItemClass *item = itemManager->getItem(itemId); + if (item) + item->useTrigger(mCharacter, ITT_IN_INVY); + // Send that first, before checking potential removals if (invMsg.getLength() > 2) gameHandler->sendTo(mCharacter, invMsg); |