fix crash when creating a fighter with an explicit particle ID
This commit is contained in:
parent
20a7d0528b
commit
21532821b7
@ -2804,7 +2804,7 @@ int Simulation::create_part(int p, int x, int y, int tv)
|
|||||||
}
|
}
|
||||||
else if (parts[p].type == PT_FIGH)
|
else if (parts[p].type == PT_FIGH)
|
||||||
{
|
{
|
||||||
fighters[(unsigned char)parts[i].tmp].spwn = 0;
|
fighters[(unsigned char)parts[p].tmp].spwn = 0;
|
||||||
fighcount--;
|
fighcount--;
|
||||||
}
|
}
|
||||||
else if (parts[p].type == PT_SOAP)
|
else if (parts[p].type == PT_SOAP)
|
||||||
|
Reference in New Issue
Block a user