Skip to content

Commit

Permalink
Fixed Mes Index
Browse files Browse the repository at this point in the history
  • Loading branch information
thesupersonic16 committed Nov 10, 2019
1 parent 57980c4 commit a5dfcb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DALTools/ScriptDialogueEditor/STSCFileDialogue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public override void Save(ExtendedBinaryWriter writer)
case "Voice":
break;
case "Msg":
inst.Arguments[4] = code.Text;
inst.Arguments[2] = code.Text;
break;
case "Script":
break;
Expand Down Expand Up @@ -87,8 +87,8 @@ public void ConvertToDialogueCode()
break;
case "Mes":
code.Type = "Msg";
code.ID = inst.GetArgument<short>(5).ToString();
code.Text = inst.GetArgument<string>(4);
code.ID = inst.GetArgument<short>(3).ToString();
code.Text = inst.GetArgument<string>(2);
code.Brush = new SolidColorBrush(Color.FromArgb(0x30, 0x00, 0x80, 0x00));
break;
case "FileJump":
Expand Down

0 comments on commit a5dfcb1

Please sign in to comment.