From 7ed1a27d17f23a842d4bedfb9f218ec48ed94fd7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 27 Apr 2012 19:56:39 +0300 Subject: Add debug check. --- src/actorspritemanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/actorspritemanager.cpp') 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 -- cgit v1.2.3-70-g09d2