Fixes several potential leaks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-05-14 17:36:38 +02:00
parent a4471ec5b1
commit 727aab37d7
3 changed files with 3 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ namespace CreatureLib::Battling {
auto& current = _scripts[_index];
if (!current.IsSet()) {
auto s = current.GetScript();
out = *s;
out = s->GetValue();
return true;
} else {
auto& set = current.GetScriptSet()->GetIterator();