diff --git a/source/eval/nnue/layers/sum.h b/source/eval/nnue/layers/sum.h index 0d4ce6f11..903b10e70 100644 --- a/source/eval/nnue/layers/sum.h +++ b/source/eval/nnue/layers/sum.h @@ -59,7 +59,8 @@ class Sum : public Sum { // パラメータを読み込む Tools::Result ReadParameters(std::istream& stream) { - if (!Tail::ReadParameters(stream)) return false; + auto result = Tail::ReadParameters(stream); + if (result.is_not_ok()) return result; return previous_layer_.ReadParameters(stream); }