From eaab620c849667786fdfda7e145717bd87428f87 Mon Sep 17 00:00:00 2001 From: Vasilii Rogin Date: Tue, 7 Jan 2025 21:16:31 +0200 Subject: [PATCH] src/character_editor.cc 7253 err V783 Dereferencing of the invalid iterator 'gCustomKarmaFolderDescriptions.end()' might take place. --- src/character_editor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/character_editor.cc b/src/character_editor.cc index 49e0124a..bd485c7a 100644 --- a/src/character_editor.cc +++ b/src/character_editor.cc @@ -7250,7 +7250,7 @@ static int customKarmaFolderGetFrmId() return entry.frmId; } } - return gCustomKarmaFolderDescriptions.end()->frmId; + return gCustomKarmaFolderDescriptions.back().frmId; } static void customTownReputationInit()