From d7fa7ea64f6bb0bc0b097e4bf1ceb4bd9620d0da Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Wed, 10 Apr 2013 23:04:42 +0200 Subject: Converted Being into a Component I did not really care too much about staying consistent with the use of static_casts to Actors since they are only temporary anyway until Actor is a component too. --- src/game-server/statuseffect.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game-server/statuseffect.cpp') diff --git a/src/game-server/statuseffect.cpp b/src/game-server/statuseffect.cpp index b5b988f..75fae98 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()); } } -- cgit