summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-02 23:07:09 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-02 23:07:09 +0300
commit7e17bd4af4609a4106dab910b4741800eadf3ff5 (patch)
treebdf2e36af5792b1cc049d6959687bc4d9d53faec /src/net/eathena
parent9e94feb923afe8ce73b6590b73f513dd3895e70b (diff)
downloadplus-7e17bd4af4609a4106dab910b4741800eadf3ff5.tar.gz
plus-7e17bd4af4609a4106dab910b4741800eadf3ff5.tar.bz2
plus-7e17bd4af4609a4106dab910b4741800eadf3ff5.tar.xz
plus-7e17bd4af4609a4106dab910b4741800eadf3ff5.zip
Read whole packet in BeingRecv::processBeingSpecialEffect even if being not found.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/beingrecv.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index 535f65091..4fdcf7ad3 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -1450,7 +1450,10 @@ void BeingRecv::processBeingSpecialEffect(Net::MessageIn &msg)
const BeingId id = msg.readBeingId("being id");
Being *const being = actorManager->findBeing(id);
if (being == nullptr)
+ {
+ msg.readInt32("effect type");
return;
+ }
const int effectType = msg.readInt32("effect type");