Fixes segfault
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2022-03-05 14:44:48 +01:00
parent 54ef297826
commit 66c742e225
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 0 additions and 1 deletions

View File

@ -367,7 +367,6 @@ CreatureLib::Battling::BattleScript* AngelScriptScript::Clone(const ArbUt::Optio
auto* ctx = _ctxPool->RequestContext(); auto* ctx = _ctxPool->RequestContext();
auto* obj = _type->Instantiate(ctx); auto* obj = _type->Instantiate(ctx);
if (_obj != nullptr) { if (_obj != nullptr) {
obj->Release();
obj->CopyFrom(_obj); obj->CopyFrom(_obj);
} }
_ctxPool->ReturnContextToPool(ctx); _ctxPool->ReturnContextToPool(ctx);