Add more death logging to trace odd script bugs

master
Per Inge Mathisen 2011-01-22 20:38:27 +01:00
parent 34b3161be0
commit bf6eba1021
2 changed files with 2 additions and 0 deletions

View File

@ -475,6 +475,7 @@ bool removeFeature(FEATURE *psDel)
}
}
debug(LOG_DEATH, "Killing off feature %s id %d (%p)", objInfo(psDel), psDel->id, psDel);
killFeature(psDel);
return true;

View File

@ -4772,6 +4772,7 @@ BOOL removeStruct(STRUCTURE *psDel, BOOL bDestroy)
if (bDestroy)
{
debug(LOG_DEATH, "Killing off %s id %d (%p)", objInfo(psDel), psDel->id, psDel);
killStruct(psDel);
}