summaryrefslogtreecommitdiff
path: root/src/net/eathena/beingrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/beingrecv.cpp')
-rw-r--r--src/net/eathena/beingrecv.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index 84bf9ee0c..6c78a8f40 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -1744,8 +1744,9 @@ void BeingRecv::processBeingAttrs(Net::MessageIn &msg)
uint16_t mount = 0;
if (haveMount)
mount = msg.readInt16("mount");
+ int language = -1;
if (serverVersion >= 17)
- msg.readInt16("language");
+ language = msg.readInt16("language");
if (dstBeing)
{
if (gmLevel)
@@ -1764,6 +1765,7 @@ void BeingRecv::processBeingAttrs(Net::MessageIn &msg)
{
dstBeing->setHorse(mount);
}
+ dstBeing->setLanguageId(language);
}
}