Def unload: Fix overloaded function refcount

qteditor
Nicolas Hake 2016-07-07 14:34:24 +02:00
parent 7ff8c4f95a
commit 4725043493
1 changed files with 1 additions and 1 deletions

View File

@ -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");