summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-21 21:24:46 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-21 21:24:46 +0300
commit2d8b9246c8003f1d32ba396bc19cc11bc5a595b2 (patch)
tree034d9370b6a8c3081b7107c7b44fe914df7f5eab
parent860728a6949cb06191c3f3fee8df091768e7f154 (diff)
downloadplus-2d8b9246c8003f1d32ba396bc19cc11bc5a595b2.tar.gz
plus-2d8b9246c8003f1d32ba396bc19cc11bc5a595b2.tar.bz2
plus-2d8b9246c8003f1d32ba396bc19cc11bc5a595b2.tar.xz
plus-2d8b9246c8003f1d32ba396bc19cc11bc5a595b2.zip
Remove useless check.
-rw-r--r--src/being/actorsprite.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp
index 7f15e4e78..6c2c99a40 100644
--- a/src/being/actorsprite.cpp
+++ b/src/being/actorsprite.cpp
@@ -575,8 +575,7 @@ void ActorSprite::cleanupTargetCursors()
{
for_each_cursors()
{
- if (targetCursor[type][size] != nullptr)
- delete2(targetCursor[type][size])
+ delete2(targetCursor[type][size])
}
end_foreach
}