Fixed enemy ruins not becoming neutral on destruction

master
krzys-h 2015-07-15 18:49:15 +02:00
parent 80963f1a2b
commit 61ea372e51
1 changed files with 2 additions and 0 deletions

View File

@ -709,6 +709,8 @@ bool COldObject::ExplodeObject(ExplosionType type, float force, float decay)
}
m_main->RemoveFromSelectionHistory(this);
SetTeam(0); // Back to neutral on destruction
if ( m_botVar != 0 )
{
if ( m_type == OBJECT_STONE ||