fix crash when creating a fighter with an explicit particle ID

This commit is contained in:
mniip 2014-05-14 06:41:18 +04:00
parent 20a7d0528b
commit 21532821b7

View File

@ -2804,7 +2804,7 @@ int Simulation::create_part(int p, int x, int y, int tv)
}
else if (parts[p].type == PT_FIGH)
{
fighters[(unsigned char)parts[i].tmp].spwn = 0;
fighters[(unsigned char)parts[p].tmp].spwn = 0;
fighcount--;
}
else if (parts[p].type == PT_SOAP)