summaryrefslogtreecommitdiff
path: root/src/game-server/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/being.cpp')
-rw-r--r--src/game-server/being.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp
index 2c334b37..66545ff6 100644
--- a/src/game-server/being.cpp
+++ b/src/game-server/being.cpp
@@ -603,11 +603,10 @@ void Being::recalculateBaseAttribute(unsigned attr)
return;
Script *script = ScriptManager::currentState();
- script->setMap(getMap());
script->prepare(mRecalculateBaseAttributeCallback);
script->push(this);
script->push(attr);
- script->execute();
+ script->execute(getMap());
}
void Being::updateDerivedAttributes(unsigned attr)
@@ -632,11 +631,10 @@ void Being::updateDerivedAttributes(unsigned attr)
return;
Script *script = ScriptManager::currentState();
- script->setMap(getMap());
script->prepare(mRecalculateDerivedAttributesCallback);
script->push(this);
script->push(attr);
- script->execute();
+ script->execute(getMap());
}
void Being::applyStatusEffect(int id, int timer)