From bf6eba10216f9b1c62992afe3567861edc5a81f4 Mon Sep 17 00:00:00 2001 From: Per Inge Mathisen Date: Sat, 22 Jan 2011 20:38:27 +0100 Subject: [PATCH] Add more death logging to trace odd script bugs --- src/feature.cpp | 1 + src/structure.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/feature.cpp b/src/feature.cpp index 1313e3388..1b9f0be4e 100644 --- a/src/feature.cpp +++ b/src/feature.cpp @@ -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; diff --git a/src/structure.cpp b/src/structure.cpp index df3062258..a6c3d5b74 100644 --- a/src/structure.cpp +++ b/src/structure.cpp @@ -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); }