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/mapcomposite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game-server/mapcomposite.cpp') diff --git a/src/game-server/mapcomposite.cpp b/src/game-server/mapcomposite.cpp index bb7093b..e35c68f 100644 --- a/src/game-server/mapcomposite.cpp +++ b/src/game-server/mapcomposite.cpp @@ -182,7 +182,7 @@ CharacterIterator::CharacterIterator(const ZoneIterator &it) while (iterator && (*iterator)->nbCharacters == 0) ++iterator; if (iterator) { - current = static_cast< Character * >((*iterator)->objects[pos]); + current = static_cast< Being * >((*iterator)->objects[pos]); } } @@ -195,7 +195,7 @@ void CharacterIterator::operator++() } if (iterator) { - current = static_cast< Character * >((*iterator)->objects[pos]); + current = static_cast< Being * >((*iterator)->objects[pos]); } } -- cgit