mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 08:27:46 +00:00
Fix items being created incorrectly for small plots
This commit is contained in:
parent
52c35e0ccb
commit
c6232f2395
2 changed files with 5 additions and 1 deletions
|
@ -588,6 +588,10 @@ bool Sapphire::World::Manager::HousingMgr::initHouseModels( Entity::Player& play
|
|||
|
||||
for( auto& item : destContainer.second )
|
||||
{
|
||||
// small houses attic is just 0, ignore them
|
||||
if( item.second == 0 )
|
||||
continue;
|
||||
|
||||
auto pItem = invMgr->createItem( player, item.second );
|
||||
|
||||
container->setItem( item.first, pItem );
|
||||
|
|
|
@ -87,7 +87,7 @@ Sapphire::ItemPtr Sapphire::World::Manager::InventoryMgr::createItem( Entity::Pl
|
|||
stmt->setUInt( 3, item->getId() );
|
||||
stmt->setUInt( 4, item->getStackSize() );
|
||||
|
||||
pDb->execute( stmt );
|
||||
pDb->directExecute( stmt );
|
||||
|
||||
return item;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue