Fixes segfault
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
54ef297826
commit
66c742e225
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue