diff options
Diffstat (limited to 'src/game-server/statuseffect.cpp')
-rw-r--r-- | src/game-server/statuseffect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/statuseffect.cpp b/src/game-server/statuseffect.cpp index b5b988f4..75fae986 100644 --- a/src/game-server/statuseffect.cpp +++ b/src/game-server/statuseffect.cpp @@ -32,14 +32,14 @@ StatusEffect::~StatusEffect() { } -void StatusEffect::tick(Being *target, int count) +void StatusEffect::tick(Entity &target, int count) { if (mTickCallback.isValid()) { Script *s = ScriptManager::currentState(); s->prepare(mTickCallback); - s->push(target); + s->push(&target); s->push(count); - s->execute(target->getMap()); + s->execute(target.getMap()); } } |