summaryrefslogtreecommitdiff
path: root/src/net/ea/beingrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/beingrecv.cpp')
-rw-r--r--src/net/ea/beingrecv.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/ea/beingrecv.cpp b/src/net/ea/beingrecv.cpp
index a618f5aa6..e1990ec86 100644
--- a/src/net/ea/beingrecv.cpp
+++ b/src/net/ea/beingrecv.cpp
@@ -252,15 +252,16 @@ void BeingRecv::processBeingEmotion(Net::MessageIn &msg)
Being *const dstBeing = actorManager->findBeing(
msg.readBeingId("being id"));
+
+ const uint8_t emote = msg.readUInt8("emote");
+
if (dstBeing == nullptr)
{
DEBUGLOGSTR("invisible player?");
- msg.readUInt8("emote");
BLOCK_END("BeingRecv::processBeingEmotion")
return;
}
- const uint8_t emote = msg.readUInt8("emote");
if ((emote != 0U) &&
playerRelations.hasPermission(dstBeing, PlayerRelation::EMOTE))
{