fixed crash

This commit is contained in:
Nikolay Korolev 2020-04-15 00:33:55 +03:00 committed by GitHub
parent 6d934892ec
commit 70b51d42f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8921,6 +8921,7 @@ int8 CRunningScript::ProcessCommands1000To1099(int32 command)
UpdateCompareFlag(CCredits::AreCreditsDone());
return 0;
case COMMAND_CREATE_SINGLE_PARTICLE:
CollectParameters(&m_nIp, 8);
CParticle::AddParticle((tParticleType)ScriptParams[0], *(CVector*)&ScriptParams[1],
*(CVector*)&ScriptParams[4], nil, *(float*)&ScriptParams[7], 0, 0, 0, 0);
return 0;