mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 22:37:45 +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
|
// check if containerId exists, it always should - if it doesn't, something went wrong
|
||||||
auto container = estateInv.find( containerId );
|
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 );
|
container->second->setItem( slot, item );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue