]> git.sesse.net Git - remoteglot-book/blobdiff - binmerger.cpp
Store and handle the PGN start position.
[remoteglot-book] / binmerger.cpp
index 9bd969ead0d3795ed0a495047ad5e2ae77232a0c..7e341592eec4d75c7f94e5702e53fd83926d26b0 100644 (file)
@@ -32,11 +32,13 @@ void merge_count(void* userdata,
                if (c0.has_first_timestamp()) {
                        c.set_first_timestamp(c0.first_timestamp());
                }
+               c.set_pgn_start_position(c0.pgn_start_position());
        } else {
                c.set_opening_num(c1.opening_num());
                if (c1.has_first_timestamp()) {
                        c.set_first_timestamp(c1.first_timestamp());
                }
+               c.set_pgn_start_position(c1.pgn_start_position());
        }
 
        // Merge the moves, with deduplication.