# HG changeset patch # User Jens Alfke # Date 1205362292 25200 # Node ID af9b2b929b037e11892ad2b104ec4ca053ac80eb # Parent 3ba1f29595c7bc2fb6bdcc7094bb7ebd2f1e6da6 Fixed: An exception in the Go game if you mouse down on the board but then drag to the captured-pieces area and release the mouse. diff -r 3ba1f29595c7 -r af9b2b929b03 Source/GoGame.m --- a/Source/GoGame.m Wed Mar 12 15:49:36 2008 -0700 +++ b/Source/GoGame.m Wed Mar 12 15:51:32 2008 -0700 @@ -106,6 +106,8 @@ - (BOOL) canBit: (Bit*)bit moveFrom: (id)srcHolder to: (id)dstHolder { + if( ! [dstHolder isKindOfClass: [Square class]] ) + return NO; Square *dst=(Square*)dstHolder; // There should be a check here for a "ko" (repeated position) ... exercise for the reader!