forked from Mirrors/openclonk
Def unload: Fix overloaded function refcount
parent
7ff8c4f95a
commit
4725043493
|
@ -99,7 +99,7 @@ void C4ScriptHost::UnlinkOwnedFunctions()
|
|||
// Unlink the removed function from the inheritance chain
|
||||
if (func_chain->OwnerOverloaded == func)
|
||||
{
|
||||
func_chain->OwnerOverloaded = func->OwnerOverloaded;
|
||||
func_chain->SetOverloaded(func->OwnerOverloaded);
|
||||
break;
|
||||
}
|
||||
assert(func_chain->OwnerOverloaded && "Removed function not found in inheritance chain");
|
||||
|
|
Loading…
Reference in New Issue