mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-24 10:37:45 +00:00
FreeCompanyMgr: fix invalid expression for *nix
This commit is contained in:
parent
ded211a6b5
commit
bd3608a89b
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ FreeCompanyPtr FreeCompanyMgr::createFreeCompany( const std::string& name, const
|
||||||
|
|
||||||
if( !m_fcIdMap.empty() )
|
if( !m_fcIdMap.empty() )
|
||||||
{
|
{
|
||||||
auto lastIdx = ( --m_fcIdMap.end() )->first;
|
auto lastIdx = ( std::prev( m_fcIdMap.end() ) )->first;
|
||||||
freeCompanyId = lastIdx + 1;
|
freeCompanyId = lastIdx + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue