diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-12 20:11:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-12 20:11:49 +0300 |
commit | 2128b93673978b66770ec5f55344ffb258f0b868 (patch) | |
tree | a8719bbea45ebec16b51039ae8e5a90250c2a0c8 /src/net | |
parent | a3afea015883068d24f9b6ad0db876131dcc7de7 (diff) | |
download | manaverse-2128b93673978b66770ec5f55344ffb258f0b868.tar.gz manaverse-2128b93673978b66770ec5f55344ffb258f0b868.tar.bz2 manaverse-2128b93673978b66770ec5f55344ffb258f0b868.tar.xz manaverse-2128b93673978b66770ec5f55344ffb258f0b868.zip |
Fix again compilation issue 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 a03cd617e..c2049d3cc 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((Uint16*)(mInBuffer + (pos))); + return SDL_Swap16((*(Uint16*)(mInBuffer + (pos)))); #else return (*reinterpret_cast<Uint16*>(mInBuffer + (pos))); #endif |