summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 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