From aa04597c5f8bb806996d604699fc8ebff6d53bdd Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sat, 6 Apr 2013 21:36:50 +0200 Subject: Converted the Character class into a component A CharacterData was created as a proxy class in order to allow using the old serialization method. --- src/game-server/combatcomponent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game-server/combatcomponent.cpp') 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); } /** -- cgit v1.2.3-60-g2f50