summaryrefslogtreecommitdiff
path: root/src/client/GameSave.cpp
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 15:29:27 (GMT)
commit082072a05e7847ed3c226495f9d613e11f768306 (patch)
tree11b5f1eb0bf059df0a494aff86d2662ff7c24ecf /src/client/GameSave.cpp
parent6ace7bd26fe8f274d911beab143c2743f03af8cf (diff)
downloadpowder-082072a05e7847ed3c226495f9d613e11f768306.zip
powder-082072a05e7847ed3c226495f9d613e11f768306.tar.gz
OPS: Fix byte order when unpacking 4 byte tmp fields
Diffstat (limited to 'src/client/GameSave.cpp')
-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);
}
}
}