summaryrefslogtreecommitdiff
path: root/src/client/GameSave.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-21 00:09:22 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-21 00:09:22 (GMT)
commitba1ce66968c4e8c016e463cb52d928f0b018b005 (patch)
treecf11d01b134fa51af1e9e4b01f56f9ebf7e10586 /src/client/GameSave.cpp
parent451a94a6ac81e31a5092fef3eed8f5e92cf485f2 (diff)
downloadpowder-ba1ce66968c4e8c016e463cb52d928f0b018b005.zip
powder-ba1ce66968c4e8c016e463cb52d928f0b018b005.tar.gz
Correct particlesCount when reading PSv format, particlesCount was being assigned to the last index and thus was one less that desired. fixes #138
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 002433e..761cbea 100644
--- a/src/client/GameSave.cpp
+++ b/src/client/GameSave.cpp
@@ -1230,7 +1230,7 @@ void GameSave::readPSv(char * data, int dataLength)
particles[k].x = (float)x;
particles[k].y = (float)y;
m[(x-x0)+(y-y0)*w] = k+1;
- particlesCount = k++;
+ particlesCount = ++k;
}
}