"Change Set: ChineseCheckersFix-ajh Date: 15 February 2001 Author: Anthony Hannan Fixes 'Subscript out of bounds' error when making an illegal move"! !ChineseCheckers methodsFor: 'drag and drop' stamp: 'ajh 2/15/2001 21:11'! acceptDroppingMorph: aPiece event: evt | dropLoc | dropLoc _ self boardLocAt: evt cursorPoint. dropLoc = aPiece boardLoc ifTrue: "Null move" [^ aPiece rejectDropMorphEvent: evt]. (plannedMove _ (self allMovesFrom: aPiece boardLoc) detect: [:move | move last = dropLoc] ifNone: [nil]) ifNil: [^ aPiece rejectDropMorphEvent: evt. "Not a valid move"]. super acceptDroppingMorph: aPiece event: evt. movePhase _ 1. "Start the animation if any." ! !