mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 07:52:51 +02:00
proper particle cleanup in unit destructor; campfire is using new particles now
This commit is contained in:
@@ -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 ======================================
|
||||
|
Reference in New Issue
Block a user