diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-13 12:20:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-13 12:20:19 +0300 |
commit | f0b7627b7d88c1d5bb484961377114b210c8dd53 (patch) | |
tree | a978c3b8eca88759fa71b5fc34112f4bea9bbcec /src/net/tmwa/messageout.cpp | |
parent | d9be27bba8941260500066cdd43ebb016356bc67 (diff) | |
download | ManaVerse-f0b7627b7d88c1d5bb484961377114b210c8dd53.tar.gz ManaVerse-f0b7627b7d88c1d5bb484961377114b210c8dd53.tar.bz2 ManaVerse-f0b7627b7d88c1d5bb484961377114b210c8dd53.tar.xz ManaVerse-f0b7627b7d88c1d5bb484961377114b210c8dd53.zip |
Fix code style.
Diffstat (limited to 'src/net/tmwa/messageout.cpp')
-rw-r--r-- | src/net/tmwa/messageout.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tmwa/messageout.cpp b/src/net/tmwa/messageout.cpp index 1a3986412..31196a4a7 100644 --- a/src/net/tmwa/messageout.cpp +++ b/src/net/tmwa/messageout.cpp @@ -94,7 +94,8 @@ void MessageOut::writeCoordinates(const uint16_t x, DEBUGLOG(strprintf("writeCoordinates: %u,%u %u", static_cast<unsigned>(x), static_cast<unsigned>(y), static_cast<unsigned>(direction))); - char *const data = mData + static_cast<size_t>(mPos); + unsigned char *const data = reinterpret_cast<unsigned char*>(mData) + + static_cast<size_t>(mPos); mNetwork->mOutSize += 3; mPos += 3; |