summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game-server/item.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game-server/item.cpp b/src/game-server/item.cpp
index e0ea58ca..5512a347 100644
--- a/src/game-server/item.cpp
+++ b/src/game-server/item.cpp
@@ -124,6 +124,7 @@ bool ItemClass::use(Being *itemUser)
if (mType != ITEM_USABLE) return false;
if (mScript)
{
+ mScript->setMap(itemUser->getMap());
mScript->prepare("use");
mScript->push(itemUser);
mScript->push(mDatabaseID); // ID of the item