diff options
Diffstat (limited to 'src/game-server/spawnareacomponent.cpp')
-rw-r--r-- | src/game-server/spawnareacomponent.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game-server/spawnareacomponent.cpp b/src/game-server/spawnareacomponent.cpp index d71c2502..557a2da5 100644 --- a/src/game-server/spawnareacomponent.cpp +++ b/src/game-server/spawnareacomponent.cpp @@ -67,7 +67,8 @@ void SpawnAreaComponent::update(Entity &entity) const int width = mZone.w; const int height = mZone.h; - Being *being = new Monster(mSpecy); + Being *being = new Being(OBJECT_MONSTER); + being->addComponent(new MonsterComponent(*being, mSpecy)); if (being->getModifiedAttribute(ATTR_MAX_HP) <= 0) { |