From 21532821b7c057afd091b3a0117d4bc35c54d227 Mon Sep 17 00:00:00 2001 From: mniip Date: Wed, 14 May 2014 06:41:18 +0400 Subject: [PATCH] fix crash when creating a fighter with an explicit particle ID --- src/simulation/Simulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index d39cd52b3..c0de378d2 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -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)