Skip to content

Commit 054190d

Browse files
committed
Report internal name of a trigger on a script error
1 parent 4fd7953 commit 054190d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ProcessPreviousLine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ POSITION pos;
11521152
m_iTriggersMatchedCount++;
11531153
m_iTriggersMatchedThisSessionCount++;
11541154

1155-
CString strScriptSource = TFormat ("Trigger: %s", (LPCTSTR) trigger_item->strLabel);
1155+
CString strScriptSource = TFormat ("Trigger: %s", (LPCTSTR) trigger_item->strInternalName);
11561156

11571157
if (trigger_item->iSendTo == eSendToScriptAfterOmit)
11581158
{

dialogs/world_prefs/genpropertypage.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,8 @@ CString strMsg;
508508
m_ctlList->SetItemData (nItem, (DWORD) pstrObjectName);
509509
} // end of label changing
510510

511+
SetInternalName (pItem, strObjectName); // set internal name
512+
511513
// see if the user changed anything, anyway
512514
if (CheckIfChanged (&dlg, pItem))
513515
{

0 commit comments

Comments
 (0)