summaryrefslogtreecommitdiff
path: root/src/game-server/item.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-07-16 22:30:58 -0400
committerChuck Miller <shadowmil@gmail.com>2009-07-16 22:30:58 -0400
commit053d2fa151ae209fe15c0a38fddb10abf1f6ad8a (patch)
treed89ad161bc54b5ac22f65c81991ad79eed77f4ce /src/game-server/item.cpp
parentccb2eb127b122b73a270d953eed3513fcb5f0e5f (diff)
downloadmanaserv-053d2fa151ae209fe15c0a38fddb10abf1f6ad8a.tar.gz
manaserv-053d2fa151ae209fe15c0a38fddb10abf1f6ad8a.tar.bz2
manaserv-053d2fa151ae209fe15c0a38fddb10abf1f6ad8a.tar.xz
manaserv-053d2fa151ae209fe15c0a38fddb10abf1f6ad8a.zip
Set a map for the mScript when a item is used
Diffstat (limited to 'src/game-server/item.cpp')
-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