From 1ffc3a7cdaa6c54dceb18bfdc56032335b2cfcd9 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sun, 15 May 2005 18:06:32 +0000 Subject: better monsterset management --- src/being.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/being.cpp') 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()); -- cgit v1.2.3-70-g09d2