From 2128b93673978b66770ec5f55344ffb258f0b868 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 12 Jul 2011 20:11:49 +0300 Subject: Fix again compilation issue in big endian system. --- src/net/tmwa/network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net') 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(mInBuffer + (pos))); #endif -- cgit v1.2.3-70-g09d2