From: Marco Costalba Date: Fri, 30 Aug 2013 14:40:11 +0000 (+0200) Subject: Fix a bogus assert in allows() X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=3e4dcaa06e7fd555628f1c3a65f4b7967d9708cd;hp=3e4dcaa06e7fd555628f1c3a65f4b7967d9708cd;p=stockfish Fix a bogus assert in allows() Becuase castle is coded as "king captures the rook" the to_sq(move), A1/8 or H1/8 is empty after the move, leading to assert assert(p != NO_PIECE) in color_of(). Teach allows() asserts about castle and fix the crash. Bug reported by Ryan Takker and tracked down by Tom Vijlbrief. No functional change. ---