1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 14:57:44 +00:00

Fix building on gcc

This commit is contained in:
Maple 2023-03-07 09:31:25 -03:00
parent 2862208cfe
commit 71eb8dcf42
2 changed files with 2 additions and 2 deletions

View file

@ -735,7 +735,7 @@ Sapphire::ItemPtr Sapphire::Entity::Player::addItem( uint32_t catalogId, uint32_
}
auto item = createTempItem( catalogId, quantity );
if( !item )
return false;
return nullptr;
item->setHq( isHq );
return addItem( item, silent, canMerge, sendLootMessage );
}

View file

@ -69,7 +69,7 @@ namespace Sapphire
size_t size() const
{
size_t size = 0;
for( auto& it = m_objectCache.begin(); it != m_objectCache.end(); ++it )
for( auto it = m_objectCache.begin(); it != m_objectCache.end(); ++it )
size += it->second.size();
return size;