summaryrefslogtreecommitdiff
path: root/src/game-server/combatcomponent.cpp
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-04-06 21:36:50 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-04-11 13:43:00 +0200
commitaa04597c5f8bb806996d604699fc8ebff6d53bdd (patch)
tree20e6a79a873605b62c80011fd5c80351f60df6fb /src/game-server/combatcomponent.cpp
parentd95fccfca8575d8fb06988e558a338e37776961a (diff)
downloadmanaserv-aa04597c5f8bb806996d604699fc8ebff6d53bdd.tar.gz
manaserv-aa04597c5f8bb806996d604699fc8ebff6d53bdd.tar.bz2
manaserv-aa04597c5f8bb806996d604699fc8ebff6d53bdd.tar.xz
manaserv-aa04597c5f8bb806996d604699fc8ebff6d53bdd.zip
Converted the Character class into a component
A CharacterData was created as a proxy class in order to allow using the old serialization method.
Diffstat (limited to 'src/game-server/combatcomponent.cpp')
-rw-r--r--src/game-server/combatcomponent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/combatcomponent.cpp b/src/game-server/combatcomponent.cpp
index 469569b6..d71f86a3 100644
--- a/src/game-server/combatcomponent.cpp
+++ b/src/game-server/combatcomponent.cpp
@@ -180,7 +180,7 @@ void CombatComponent::processAttack(Being &source, Attack &attack)
*/
void CombatComponent::addAttack(AttackInfo *attackInfo)
{
- mAttacks.add(attackInfo);
+ mAttacks.add(this, attackInfo);
}
/**
@@ -188,7 +188,7 @@ void CombatComponent::addAttack(AttackInfo *attackInfo)
*/
void CombatComponent::removeAttack(AttackInfo *attackInfo)
{
- mAttacks.remove(attackInfo);
+ mAttacks.remove(this, attackInfo);
}
/**