Skip to content

Commit

Permalink
#114 moved a tile back to itself and it went kaboom
Browse files Browse the repository at this point in the history
  • Loading branch information
cdot committed Jan 3, 2024
1 parent d37060b commit 8f03e40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/browser/GameUIMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,8 @@ const GameUIMixin = superclass => class extends superclass {
* @private
*/
dropTile(fromSquare, toSquare) {
if (toSquare === fromSquare)
return;
if (!fromSquare.tile)
return;
this.selectSquare(); // clear selection
Expand Down

0 comments on commit 8f03e40

Please sign in to comment.