diff --git a/source/glest_game/type_instances/unit.cpp b/source/glest_game/type_instances/unit.cpp index cd81587e8..4a261e44a 100644 --- a/source/glest_game/type_instances/unit.cpp +++ b/source/glest_game/type_instances/unit.cpp @@ -154,6 +154,11 @@ Unit::~Unit(){ delete commands.back(); commands.pop_back(); } + // fade(and by this remove) all unit particle systems + while(!unitParticleSystems.empty()){ + unitParticleSystems.back()->fade(); + unitParticleSystems.pop_back(); + } } // ====================================== get ======================================