GUI: fix moveSelected going out of bounds
This commit is contained in:
parent
5917831992
commit
a25b2c7cc8
2 changed files with 73 additions and 6 deletions
|
|
@ -211,7 +211,7 @@ void FurnaceGUI::finishSelection() {
|
|||
}
|
||||
|
||||
void FurnaceGUI::moveCursor(int x, int y, bool select) {
|
||||
if (y>=editStepCoarse || y<=-editStepCoarse || x<=-5 || x>=5 ) {
|
||||
if (y>=editStepCoarse || y<=-editStepCoarse || x<=-5 || x>=5) {
|
||||
makeCursorUndo();
|
||||
}
|
||||
if (!select) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue