diff options
| author | Simon 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) |
| commit | ba1ce66968c4e8c016e463cb52d928f0b018b005 (patch) | |
| tree | cf11d01b134fa51af1e9e4b01f56f9ebf7e10586 /src | |
| parent | 451a94a6ac81e31a5092fef3eed8f5e92cf485f2 (diff) | |
| download | powder-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')
| -rw-r--r-- | src/client/GameSave.cpp | 2 |
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; } } |
