X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FHero.cpp;h=dbd5aed494da7139cf4988d4ab6bd57e999a824a;hb=f6548c2aabfb371bd81382d7800e6e2cdb826e06;hp=ab73a6be70d3ee91fbc003d4918342ebba28638c;hpb=5795ffa948c6e39a624c4fc7773a99afb87579e1;p=l2e.git diff --git a/src/common/Hero.cpp b/src/common/Hero.cpp index ab73a6b..dbd5aed 100644 --- a/src/common/Hero.cpp +++ b/src/common/Hero.cpp @@ -1,10 +1,3 @@ -/* - * Hero.cpp - * - * Created on: Oct 7, 2012 - * Author: holy - */ - #include "Hero.h" #include "Item.h" @@ -15,12 +8,16 @@ #include "../loader/TypeDescription.h" #include "../map/Entity.h" +#include + using graphics::Animation; using graphics::Sprite; using loader::FieldDescription; using loader::Interpreter; using loader::TypeDescription; using map::Entity; +using std::memset; + namespace common { @@ -40,18 +37,11 @@ Hero::Hero() , useMask(0) -, weapon(0) -, armor(0) -, shield(0) -, helmet(0) -, ring(0) -, jewel(0) - , battleSprite(0) , meleeAnimation(0) , attackAnimation(0) , spellAnimation(0) { - + memset(equipment, 0, sizeof(equipment)); }