1
Fork 0
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:
NotAdam 2019-01-10 21:08:19 +11:00
parent c1f7d9ddef
commit a1b4f98032

View file

@ -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 );