diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-12 11:51:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-12 11:51:58 +0300 |
commit | fde88ed49f0f822979b9a7529e3311496fcb042e (patch) | |
tree | 9515e9c63c5d9e68cc486a9456297c6771ddf777 /src/net | |
parent | 32bf97c611eb92d3ecb64a0532e881922dd87109 (diff) | |
download | mv-fde88ed49f0f822979b9a7529e3311496fcb042e.tar.gz mv-fde88ed49f0f822979b9a7529e3311496fcb042e.tar.bz2 mv-fde88ed49f0f822979b9a7529e3311496fcb042e.tar.xz mv-fde88ed49f0f822979b9a7529e3311496fcb042e.zip |
Fix compilation error in big endian system.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/tmwa/network.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp index dbc4ff97e..a03cd617e 100644 --- a/src/net/tmwa/network.cpp +++ b/src/net/tmwa/network.cpp @@ -479,7 +479,7 @@ void Network::setError(const std::string &error) Uint16 Network::readWord(int pos) { #if SDL_BYTEORDER == SDL_BIG_ENDIAN - return SDL_Swap16((*static_cast<Uint16*>(mInBuffer + (pos)))); + return SDL_Swap16((Uint16*)(mInBuffer + (pos))); #else return (*reinterpret_cast<Uint16*>(mInBuffer + (pos))); #endif |