Guard against treating index 0 as a duplicate

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Erica Fischer
2026-07-31 12:29:54 -07:00
committed by GitHub
co-authored by Copilot Autofix powered by AI
parent 0ae79d72ec
commit fed221b283
+1 -1
View File
@@ -1182,7 +1182,7 @@ static serial_feature next_feature(decompressor *geoms, std::atomic<long long> *
sf = deserialize_feature(s, z, tx, ty, initial_x, initial_y);
sf.stringpool = global_stringpool + pool_off[sf.segment];
if (!next_feature_state.doing_deferrals && first_zoom && additional[A_DISTINGUISH_DUPLICATES] && sf.index == next_feature_state.previndex) {
if (!next_feature_state.doing_deferrals && *original_features > 0 && first_zoom && additional[A_DISTINGUISH_DUPLICATES] && sf.index == next_feature_state.previndex) {
if (next_feature_state.which_deferral >= next_feature_state.deferrals.size()) {
std::string tmpname = std::string(tmpdir) + std::string("/deferralXXXXXXXXXX");
int fd = mkstemp((char *) tmpname.c_str());