From fde88ed49f0f822979b9a7529e3311496fcb042e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 12 Jul 2011 11:51:58 +0300 Subject: Fix compilation error in big endian system. --- src/net/tmwa/network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(mInBuffer + (pos)))); + return SDL_Swap16((Uint16*)(mInBuffer + (pos))); #else return (*reinterpret_cast(mInBuffer + (pos))); #endif -- cgit v1.2.3-60-g2f50