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:
parent
2862208cfe
commit
71eb8dcf42
2 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue