From a61c8477c7e0624ee8606301973d9a796a8d28ef Mon Sep 17 00:00:00 2001 From: peri4 Date: Mon, 22 Sep 2025 22:34:06 +0300 Subject: [PATCH] fix PIMap operator<<(PIMap) error for size=2 --- libs/main/containers/pimap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/main/containers/pimap.h b/libs/main/containers/pimap.h index 26317296..8c0acaf9 100644 --- a/libs/main/containers/pimap.h +++ b/libs/main/containers/pimap.h @@ -365,8 +365,8 @@ public: return *this; } if (other.size() == 2) { - insert(other.pim_index[0].key, other.pim_content[0]); - insert(other.pim_index[1].key, other.pim_content[1]); + insert(other.pim_index[0].key, other.pim_content[other.pim_index[0].index]); + insert(other.pim_index[1].key, other.pim_content[other.pim_index[1].index]); return *this; } for (int i = 0; i < other.pim_index.size_s(); ++i) {