forked from Mirrors/openclonk
Log call stack when using a deleted object
parent
4ae204e2fb
commit
4575f28605
|
@ -258,7 +258,10 @@ ALWAYS_INLINE void C4Value::AddDataRef()
|
|||
#ifdef _DEBUG
|
||||
assert(C4PropList::PropLists.Has(Data.PropList));
|
||||
if (!Data.PropList->Status)
|
||||
{ LogF("Warning: using ptr on deleted object %p (%s)!", static_cast<void*>(Data.PropList), Data.PropList->GetName()); }
|
||||
{
|
||||
LogF("Warning: using ptr on deleted object %p (%s)!", static_cast<void*>(Data.PropList), Data.PropList->GetName());
|
||||
AulExec.LogCallStack();
|
||||
}
|
||||
#endif
|
||||
Data.PropList->AddRef(this);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue