mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +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();
|
delete commands.back();
|
||||||
commands.pop_back();
|
commands.pop_back();
|
||||||
}
|
}
|
||||||
|
// fade(and by this remove) all unit particle systems
|
||||||
|
while(!unitParticleSystems.empty()){
|
||||||
|
unitParticleSystems.back()->fade();
|
||||||
|
unitParticleSystems.pop_back();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ====================================== get ======================================
|
// ====================================== get ======================================
|
||||||
|
Reference in New Issue
Block a user