Input Roll - oops, update current cell regardless of if the caller has subscribed to the PointedCellChanged event
This commit is contained in:
parent
f5a3d28f21
commit
a2762d708e
|
@ -1228,10 +1228,11 @@ namespace BizHawk.Client.EmuHawk
|
||||||
/// <param name="newCell"></param>
|
/// <param name="newCell"></param>
|
||||||
private void CellChanged(Cell newCell)
|
private void CellChanged(Cell newCell)
|
||||||
{
|
{
|
||||||
|
LastCell = CurrentCell;
|
||||||
|
CurrentCell = newCell;
|
||||||
|
|
||||||
if (PointedCellChanged != null && newCell != CurrentCell)
|
if (PointedCellChanged != null && newCell != CurrentCell)
|
||||||
{
|
{
|
||||||
LastCell = CurrentCell;
|
|
||||||
CurrentCell = newCell;
|
|
||||||
PointedCellChanged(this, new CellEventArgs(LastCell, CurrentCell));
|
PointedCellChanged(this, new CellEventArgs(LastCell, CurrentCell));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue