mirror of
https://github.com/glest/glest-source.git
synced 2025-08-27 09:54:26 +02:00
bugfix for particle cleanup
This commit is contained in:
@@ -68,6 +68,7 @@ Object::~Object() {
|
|||||||
}
|
}
|
||||||
unitParticleSystems.pop_back();
|
unitParticleSystems.pop_back();
|
||||||
}
|
}
|
||||||
|
Renderer::getInstance().removeParticleSystemsForParticleOwner(this,rsGame);
|
||||||
renderer.removeObjectFromQuadCache(this);
|
renderer.removeObjectFromQuadCache(this);
|
||||||
if(stateCallback) {
|
if(stateCallback) {
|
||||||
stateCallback->removingObjectEvent(this);
|
stateCallback->removingObjectEvent(this);
|
||||||
|
Reference in New Issue
Block a user