Better handling of clearning scripts.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
parent
b42bf21315
commit
96cbd594a0
|
@ -61,8 +61,8 @@ namespace CreatureLib::Battling {
|
|||
void Clear() {
|
||||
for (auto s : _scripts) {
|
||||
s->OnRemove();
|
||||
delete s;
|
||||
}
|
||||
_scripts.Clear();
|
||||
_lookup.Clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue