X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fcommon%2FHero.cpp;h=7150af0a35b8c0528058d5c845794875c4483c18;hb=350055a7ff27c74882aff8a4d6af2014782f830b;hp=ab73a6be70d3ee91fbc003d4918342ebba28638c;hpb=5795ffa948c6e39a624c4fc7773a99afb87579e1;p=l2e.git diff --git a/src/common/Hero.cpp b/src/common/Hero.cpp index ab73a6b..7150af0 100644 --- a/src/common/Hero.cpp +++ b/src/common/Hero.cpp @@ -15,12 +15,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 +44,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)); }