summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-25 14:53:27 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-25 14:53:27 (GMT)
commit9a1fb3fe4b1ca604fe78e0afb853ccfb53c179da (patch)
tree6ec49483e30c2f462d5ea736dfeaff032ccf96d1 /src
parent6ace7bd26fe8f274d911beab143c2743f03af8cf (diff)
downloadpowder-9a1fb3fe4b1ca604fe78e0afb853ccfb53c179da.zip
powder-9a1fb3fe4b1ca604fe78e0afb853ccfb53c179da.tar.gz
OPS: Fix byte order when unpacking 4 byte tmp fields
Diffstat (limited to 'src')
-rw-r--r--src/client/GameSave.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp
index 761cbea..a6a1b89 100644
--- a/src/client/GameSave.cpp
+++ b/src/client/GameSave.cpp
@@ -836,8 +836,8 @@ void GameSave::readOPS(char * data, int dataLength)
if(fieldDescriptor & 0x1000)
{
if(i+1 >= partsDataLen) goto fail;
- particles[newIndex].tmp |= (((unsigned)partsData[i++]) << 16);
particles[newIndex].tmp |= (((unsigned)partsData[i++]) << 24);
+ particles[newIndex].tmp |= (((unsigned)partsData[i++]) << 16);
}
}
}