summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index c63c2bb2..00d06a15 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -47,7 +47,8 @@ void add_node(Being *being)
WFIFOSET(6);
}
// If the being is a monster then load the monsterset
- else if (being->job >= 1002 && monsterset[being->job - 1002] == NULL) {
+ else if (being->job >= 1002 && monsterset.find(
+ being->job - 1002) == monsterset.end()) {
std::stringstream filename;
filename << "graphics/sprites/monster" << (being->job - 1002) << ".png";
logger->log("%s",filename.str().c_str());