Fix setting up of positions without King
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 2 Jun 2014 17:49:41 +0000 (19:49 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 2 Jun 2014 17:49:41 +0000 (19:49 +0200)
commit77ad1e5157ad3cf48244f2377f90272d3bb4a1c1
treeb5c2f95ff24c5a7df75912732f7b1e6b9bc69db9
parenta494f710fd8564278ece8d843573e06b05bb1ec8
Fix setting up of positions without King

Without King, royal[] would not be set, and retain the value it had
in the standard setup (as it was not cleared either). This would usually
point outside the piece list, but occasionally it designated an on-board
piece as royal, which then could make HaChu think it was checkmated in
the initial position of a tsume problem. It also caused problems
in positions with only CP.
hachu.c