Skip to content

Commit 21dd1f3

Browse files
committed
Fix crash on clicking "Go To Target" when selected trigger action has no parameters
1 parent 208d9c4 commit 21dd1f3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/TSMapEditor/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace TSMapEditor
44
{
55
public static class Constants
66
{
7-
public const string ReleaseVersion = "1.7.2";
7+
public const string ReleaseVersion = "1.7.3";
88

99
public static int CellSizeX = 48;
1010
public static int CellSizeY = 24;

src/TSMapEditor/UI/Windows/TriggersWindow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,9 @@ private void btnActionGoToTarget_LeftClick(object sender, EventArgs e)
11561156
if (lbActions.SelectedItem == null)
11571157
return;
11581158

1159+
if (lbActionParameters.SelectedItem == null)
1160+
return;
1161+
11591162
GetTriggerActionAndParamIndex(out TriggerAction triggerAction, out int paramIndex);
11601163

11611164
var triggerActionType = GetTriggerActionType(triggerAction.ActionIndex);

0 commit comments

Comments
 (0)