Better handling of clearning scripts.
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
Deukhoofd committed 2021-04-14 19:29:42 +02:00
1 parent b42bf21315
commit 96cbd594a0
1 file changed
+1 -1
+1 -1
View File
@@ -61,8 +61,8 @@ namespace CreatureLib::Battling {
void Clear() {
for (auto s : _scripts) {
s->OnRemove();
delete s;
}
_scripts.Clear();
_lookup.Clear();
}