From bc92643d8db723b5049db2dbad1ce052a0ae77a9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Oct 2012 20:39:33 +0300 Subject: Fix code style and some other minor issues. --- src/localplayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/localplayer.cpp') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index f3a45bdeb..3f08ef643 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -1362,7 +1362,7 @@ void LocalPlayer::attack(Being *const target, const bool keep, if (!Client::limitPackets(PACKET_ATTACK)) return; - if (!dontChangeEquipment && target) + if (!dontChangeEquipment) changeEquipmentBeforeAttack(target); Net::getPlayerHandler()->attack(target->getId(), mServerAttack); @@ -4251,7 +4251,7 @@ bool LocalPlayer::checAttackPermissions(const Being *const target) const } -const char *LocalPlayer::getVarItem(const char **const arr, +const char *LocalPlayer::getVarItem(const char *const *const arr, const unsigned index, const unsigned sz) const { -- cgit v1.2.3-70-g09d2