lua - tastudio.getselection() - make key of the lua table an index

This commit is contained in:
adelikat 2017-07-24 08:44:15 -05:00
parent 5843ac2e79
commit 51eed83cce
1 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using NLua;
using BizHawk.Client.Common;
@ -246,11 +247,11 @@ namespace BizHawk.Client.EmuHawk
if (Engaged())
{
var selection = Tastudio.GetSelection();
var selection = Tastudio.GetSelection().ToList();
foreach (var row in selection)
for (int i = 0; i < selection.Count; i++)
{
table[row] = row;
table[i] = selection[i];
}
}