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