From c6ac11341bd99cbe5eeb4275b9b2473e21338d5e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 9 Jun 2017 00:18:08 +0300 Subject: Fix code style. --- src/actions/actions.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/actions') diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 176495a18..e9bf8b110 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -896,8 +896,11 @@ impHandler(targetAttack) { target = actorManager->findBeing(fromInt(atoi( args.substr(1).c_str()), BeingId)); - if ((target != nullptr) && target->getType() != ActorType::Monster) + if (target != nullptr && + target->getType() != ActorType::Monster) + { target = nullptr; + } } } -- cgit v1.2.3-60-g2f50