summaryrefslogtreecommitdiff
path: root/src/monster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/monster.cpp')
-rw-r--r--src/monster.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/monster.cpp b/src/monster.cpp
index 7fffd34e..e3d2b5a8 100644
--- a/src/monster.cpp
+++ b/src/monster.cpp
@@ -26,6 +26,8 @@
#include "animatedsprite.h"
#include "game.h"
+#include "resources/monsterdb.h"
+
#include "utils/tostring.h"
@@ -33,7 +35,7 @@ Monster::Monster(Uint32 id, Uint16 job, Map *map):
Being(id, job, map)
{
mSprites[BASE_SPRITE] = new AnimatedSprite(
- "graphics/sprites/monster" + toString(job - 1002) + ".xml");
+ "data/graphics/sprites/" + MonsterDB::get(job-1002).getSprite());
}
void