From 74c63cfd0894d9e38c6c68e96135963a6ed06842 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sat, 25 Jan 2020 23:49:56 +0100 Subject: [PATCH] Fix Betza notation for royal fairy pieces --- src/ucioption.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 2f354e1..628f7ba 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -92,7 +92,7 @@ void on_variant_change(const Option &o) { suffix += "s"; suffix += "@" + std::to_string(pt == PAWN && !v->promotionZonePawnDrops ? v->promotionRank : v->maxRank + 1); } - sync_cout << "piece " << v->pieceToChar[pt] << "& " << pieceMap.find(pt)->second->betza << suffix << sync_endl; + sync_cout << "piece " << v->pieceToChar[pt] << "& " << pieceMap.find(pt == KING ? v->kingType : pt)->second->betza << suffix << sync_endl; PieceType promType = v->promotedPieceType[pt]; if (promType) sync_cout << "piece +" << v->pieceToChar[pt] << "& " << pieceMap.find(promType)->second->betza << sync_endl; -- 1.7.0.4