diff options
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp index 4ba88a33..0a6f1043 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -36,6 +36,7 @@ #include "gui/gui.h" +#include "net/messageout.h" #include "net/network.h" #include "net/protocol.h" @@ -66,8 +67,9 @@ Being* createBeing(unsigned int id, unsigned short job, Map *map) // If the being is a player, request the name if (being->getType() == Being::PLAYER) { - writeWord(0, 0x0094); - writeLong(2, being->getId());//readLong(2)); + MessageOut outMsg; + outMsg.writeShort(0x0094); + outMsg.writeLong(being->getId());//readLong(2)); writeSet(6); } // If the being is a monster then load the monsterset |