From 42b9a6daaf19d5959bfeaa87037a61b5f8f76d9e Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Tue, 12 Jul 2022 12:45:11 +0400 Subject: [PATCH] Do not use an invalid iterator --- apps/opencs/model/world/infocollection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opencs/model/world/infocollection.cpp b/apps/opencs/model/world/infocollection.cpp index ced7938fc2..729bc31c97 100644 --- a/apps/opencs/model/world/infocollection.cpp +++ b/apps/opencs/model/world/infocollection.cpp @@ -319,7 +319,7 @@ void CSMWorld::InfoCollection::removeRows (int index, int count) ++it; } else - iter->second.erase(it); + it = iter->second.erase(it); } else ++it;