diff options
Diffstat (limited to 'src/state.cpp')
-rw-r--r-- | src/state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.cpp b/src/state.cpp index 75dae62e..a708911b 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -74,7 +74,7 @@ void State::update(ConnectionHandler &connectionHandler) MessageOut msg; msg.writeShort(SMSG_NEW_BEING); // msg.writeLong(OBJECT_PLAYER); // type - msg.writeLong((int)b2->get()); // id + msg.writeString(b2->get()->getName()); // Name msg.writeLong(b2->get()->getX());// x msg.writeLong(b2->get()->getY());// y |