Fix crash with PT_SQUASH

pyro-refactor
immibis 2020-08-01 21:30:29 +02:00
parent 0de187b084
commit aaf9d8f851
1 changed files with 4 additions and 1 deletions

View File

@ -42,5 +42,8 @@ void CSquashPyro::UpdateEffect()
void CSquashPyro::AfterEnd()
{
m_object->SetType(OBJECT_PLANT19);
if ( m_object != nullptr )
{
m_object->SetType(OBJECT_PLANT19);
}
}