From ba1ce66968c4e8c016e463cb52d928f0b018b005 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 21 Aug 2012 01:09:22 +0100 Subject: Correct particlesCount when reading PSv format, particlesCount was being assigned to the last index and thus was one less that desired. fixes #138 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; } } -- cgit v0.9.2-21-gd62e