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:
parent
451a94a6ac
commit
ba1ce66968
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user