diff options
-rw-r--r-- | src/actorsprite.cpp | 2 | ||||
-rw-r--r-- | src/actorspritemanager.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp index e86c886e4..267392a6c 100644 --- a/src/actorsprite.cpp +++ b/src/actorsprite.cpp @@ -292,7 +292,7 @@ void ActorSprite::updateStatusEffect(int index, bool newStatus) void ActorSprite::handleStatusEffect(StatusEffect *effect, int effectId) { - if (reportTrue(!effect)) + if (!effect) return; // TODO: Find out how this is meant to be used 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 |