Fix T46194: Crash rendering particles

Off by one error in 38940662
This commit is contained in:
Campbell Barton 2015-09-22 22:14:19 +10:00 committed by Sergey Sharybin
parent d26fc19fd8
commit 96c0aebeae
1 changed files with 2 additions and 2 deletions

View File

@ -1377,8 +1377,8 @@ ObjectInstanceRen *RE_addRenderInstance(Render *re, ObjectRen *obr, Object *ob,
obi->lay= lay;
/* Fill particle info */
if (obi->psysindex >= 0) {
int psysindex = 0;
if (obi->psysindex > 0) {
int psysindex = 1;
int index;
ParticleSystem *psys;
if (obi->par) {