summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/messageout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp
index d627d151..00a37b67 100644
--- a/src/net/messageout.cpp
+++ b/src/net/messageout.cpp
@@ -81,7 +81,7 @@ void MessageOut::writeLong(long value)
{
expand(mPos + sizeof(long));
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
- (*(long *)(mData + mPos)) = SDL_Swap16(value);
+ (*(long *)(mData + mPos)) = SDL_Swap32(value);
#else
(*(long *)(mData + mPos)) = value;
#endif