summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-18 18:51:15 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-18 18:51:15 +0300
commite469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0 (patch)
treebfeb4a907acd9e0b6838e393eccf3bf6da44ccad /src/net
parentc8b1e6e5455dd0c9c51b6b212478ed1e5aa1af4c (diff)
downloadmanaverse-e469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0.tar.gz
manaverse-e469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0.tar.bz2
manaverse-e469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0.tar.xz
manaverse-e469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0.zip
Add some clang fixes.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/beingrecv.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index 915be5cbd..1fc49deaf 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -1074,7 +1074,8 @@ void BeingRecv::processSkillCastingContinue(Net::MessageIn &msg,
castTime / MILLISECONDS_IN_A_TICK);
}
}
- if (srcBeing == localPlayer &&
+ if (localPlayer &&
+ srcBeing == localPlayer &&
(inf2 & SkillType2::FreeCastAny) == 0)
{
localPlayer->freezeMoving(castTime / MILLISECONDS_IN_A_TICK);