Correct particlesCount when reading PSv format, particlesCount was being assigned to the last index and thus was one less that desired. fixes #138

This commit is contained in:
Simon Robertshaw 2012-08-21 01:09:22 +01:00
parent 451a94a6ac
commit ba1ce66968

View File

@ -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;
}
}