summaryrefslogtreecommitdiff
path: root/src/net/tmwa/network.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-12 20:11:49 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-12 20:11:49 +0300
commit2128b93673978b66770ec5f55344ffb258f0b868 (patch)
treea8719bbea45ebec16b51039ae8e5a90250c2a0c8 /src/net/tmwa/network.cpp
parenta3afea015883068d24f9b6ad0db876131dcc7de7 (diff)
downloadmv-2128b93673978b66770ec5f55344ffb258f0b868.tar.gz
mv-2128b93673978b66770ec5f55344ffb258f0b868.tar.bz2
mv-2128b93673978b66770ec5f55344ffb258f0b868.tar.xz
mv-2128b93673978b66770ec5f55344ffb258f0b868.zip
Fix again compilation issue in big endian system.
Diffstat (limited to 'src/net/tmwa/network.cpp')
-rw-r--r--src/net/tmwa/network.cpp2
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