diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-05-15 18:06:32 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-05-15 18:06:32 +0000 |
commit | 1ffc3a7cdaa6c54dceb18bfdc56032335b2cfcd9 (patch) | |
tree | cb6d48cd9fda7250ad1890fe176341e3ff9cbf2e /src/being.cpp | |
parent | 996bbf90c635cdbee895180857b3c9c929170c56 (diff) | |
download | mana-client-1ffc3a7cdaa6c54dceb18bfdc56032335b2cfcd9.tar.gz mana-client-1ffc3a7cdaa6c54dceb18bfdc56032335b2cfcd9.tar.bz2 mana-client-1ffc3a7cdaa6c54dceb18bfdc56032335b2cfcd9.tar.xz mana-client-1ffc3a7cdaa6c54dceb18bfdc56032335b2cfcd9.zip |
better monsterset management
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 3 |
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()); |