mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 14:37:44 +00:00
slightly change behaviour for items that can't be loaded for a house
This commit is contained in:
parent
c1f7d9ddef
commit
a1b4f98032
1 changed files with 7 additions and 1 deletions
|
@ -151,7 +151,13 @@ bool Sapphire::World::Manager::HousingMgr::loadEstateInventories()
|
|||
|
||||
// check if containerId exists, it always should - if it doesn't, something went wrong
|
||||
auto container = estateInv.find( containerId );
|
||||
assert( container != estateInv.end() );
|
||||
if( container == estateInv.end() )
|
||||
{
|
||||
Logger::warn( "Skipping item#{0} for ident#{1} - container#{2} doesn't exist for estate.",
|
||||
itemId, ident, containerId );
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
container->second->setItem( slot, item );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue