diff options
Diffstat (limited to 'src/net/eathena/messageout.cpp')
-rw-r--r-- | src/net/eathena/messageout.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/messageout.cpp b/src/net/eathena/messageout.cpp index 49b67b84e..386f5b046 100644 --- a/src/net/eathena/messageout.cpp +++ b/src/net/eathena/messageout.cpp @@ -95,7 +95,8 @@ void MessageOut::writeCoordinates(const uint16_t x, static_cast<unsigned>(x), static_cast<unsigned>(y), static_cast<unsigned>(direction))); - char *const data = mData + mPos; + unsigned char *const data = reinterpret_cast<unsigned char*>(mData) + + static_cast<size_t>(mPos); mNetwork->mOutSize += 3; mPos += 3; |