From c9b3284aeb09ecd4956978ae1878240df9cb675b Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 24 Sep 2013 04:29:53 +0000 Subject: [PATCH] bugfix for particle cleanup --- source/glest_game/type_instances/object.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/glest_game/type_instances/object.cpp b/source/glest_game/type_instances/object.cpp index 87b8722c2..ca2507b8d 100644 --- a/source/glest_game/type_instances/object.cpp +++ b/source/glest_game/type_instances/object.cpp @@ -68,6 +68,7 @@ Object::~Object() { } unitParticleSystems.pop_back(); } + Renderer::getInstance().removeParticleSystemsForParticleOwner(this,rsGame); renderer.removeObjectFromQuadCache(this); if(stateCallback) { stateCallback->removingObjectEvent(this);