From a302446d0a898605c6319d86eae873ffa25fa4c6 Mon Sep 17 00:00:00 2001 From: Toofy Date: Wed, 8 Feb 2023 21:16:56 +0000 Subject: [PATCH] Syntax error fix --- src/world/Manager/FreeCompanyMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/Manager/FreeCompanyMgr.cpp b/src/world/Manager/FreeCompanyMgr.cpp index 563cc35d..25045797 100644 --- a/src/world/Manager/FreeCompanyMgr.cpp +++ b/src/world/Manager/FreeCompanyMgr.cpp @@ -173,7 +173,7 @@ FreeCompanyPtr FreeCompanyMgr::createFreeCompany( const std::string& name, const if( !m_fcIdMap.empty() ) { - auto lastIdx = ( --m_fcIdMap.end() )->first; + auto lastIdx = ( m_fcIdMap.end() )->first; freeCompanyId = lastIdx + 1; }