Skip to content

Commit d159780

Browse files
committed
Add local var index to local env text
1 parent 740db6c commit d159780

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TSMapEditor/UI/Windows/ScriptsWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ private string GetActionEntryText(int index, ScriptActionEntry entry)
865865
string actionEntryText;
866866
string textDetails = null;
867867

868-
ScriptAction action = GetScriptAction(entry.Action);
868+
ScriptAction action = GetScriptAction(entry.Action);
869869
if (action == null)
870870
{
871871
actionEntryText = $"#{index} - Unknown";
@@ -891,7 +891,7 @@ private string GetActionEntryText(int index, ScriptActionEntry entry)
891891
case TriggerParamType.LocalVariable:
892892
var localVar = map.LocalVariables.GetElementIfInRange(entry.Argument);
893893
if (localVar != null)
894-
textDetails = $"({localVar.Name})";
894+
textDetails = $"({localVar.Index} - {localVar.Name})";
895895
break;
896896

897897
case TriggerParamType.HouseType:

0 commit comments

Comments
 (0)