Fix scoreboard points sometimes being added multiple times

master
krzys-h 2017-05-23 22:25:01 +02:00
parent d8b0bd4df8
commit 5d4dfd8cb5
1 changed files with 1 additions and 0 deletions

View File

@ -530,6 +530,7 @@ void COldObject::DestroyObject(DestructionType type, CObject* killer)
pyroType = Gfx::PT_WPCHECK; pyroType = Gfx::PT_WPCHECK;
} }
assert(pyroType != Gfx::PT_NULL); assert(pyroType != Gfx::PT_NULL);
SetDying(DeathType::Exploding);
m_engine->GetPyroManager()->Create(pyroType, this); m_engine->GetPyroManager()->Create(pyroType, this);
if ( Implements(ObjectInterfaceType::Programmable) ) if ( Implements(ObjectInterfaceType::Programmable) )