bugfix for particle cleanup

This commit is contained in:
Mark Vejvoda 2013-09-24 04:29:53 +00:00
parent 875eb95790
commit c9b3284aeb
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ Object::~Object() {
}
unitParticleSystems.pop_back();
}
Renderer::getInstance().removeParticleSystemsForParticleOwner(this,rsGame);
renderer.removeObjectFromQuadCache(this);
if(stateCallback) {
stateCallback->removingObjectEvent(this);