summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-27 19:56:39 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-27 19:56:39 +0300
commit7ed1a27d17f23a842d4bedfb9f218ec48ed94fd7 (patch)
treed6b729d3472b156a8b07f1f470cda4aa09982ab5 /src/actorspritemanager.cpp
parent02d34fb8676682815300b9b4f410d632a5b338c0 (diff)
downloadmv-7ed1a27d17f23a842d4bedfb9f218ec48ed94fd7.tar.gz
mv-7ed1a27d17f23a842d4bedfb9f218ec48ed94fd7.tar.bz2
mv-7ed1a27d17f23a842d4bedfb9f218ec48ed94fd7.tar.xz
mv-7ed1a27d17f23a842d4bedfb9f218ec48ed94fd7.zip
Add debug check.
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r--src/actorspritemanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index 327d45a89..9463c2ae2 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -35,6 +35,7 @@
#include "gui/widgets/chattab.h"
+#include "utils/checkutils.h"
#include "utils/dtor.h"
#include "utils/gettext.h"
#include "utils/stringutils.h"
@@ -623,7 +624,7 @@ Being *ActorSpriteManager::findNearestByName(const std::string &name,
for_actors
{
- if (!*it)
+ if (reportTrue(!*it))
continue;
if ((*it)->getType() == ActorSprite::FLOOR_ITEM