fix obscure habit puzzle crash

This commit is contained in:
2022-07-27 23:21:03 +00:00
parent c9df1e81ab
commit b54f6ba1c7

View File

@@ -205,7 +205,7 @@
(set s.mouseStartDragCallback (set s.mouseStartDragCallback
->:Void [s x y] ->:Void [s x y]
(let [t (topClickedPiece)] (let [t (topClickedPiece)]
(if !(= s t) (if (and t !(= s t))
{ {
(s.stopDrag) (s.stopDrag)
(set FlxMouseControl.dragTarget t) (set FlxMouseControl.dragTarget t)