TAStudio: bounds check previous commit

This commit is contained in:
alyosha-tas 2020-07-04 11:00:40 -04:00
parent a72286eb5a
commit 4b59282fdf
1 changed files with 2 additions and 2 deletions

View File

@ -1171,10 +1171,10 @@ namespace BizHawk.Client.EmuHawk
}
}
var getVal = CurrentTasMovie.GetAxisState(i, _startAxisDrawColumn);
var getVal = (i < CurrentTasMovie.InputLogLength) ? CurrentTasMovie.GetAxisState(i, _startAxisDrawColumn) : setVal;
CurrentTasMovie.SetAxisState(i, _startAxisDrawColumn, setVal); // Notice it uses new row, old column, you can only paint across a single column
if (getVal != setVal) { JumpToGreenzone(); }
if (getVal != setVal) { JumpToGreenzone(); }
}
}