mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 16:37:45 +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 )
|
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 );
|
auto pItem = invMgr->createItem( player, item.second );
|
||||||
|
|
||||||
container->setItem( item.first, pItem );
|
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( 3, item->getId() );
|
||||||
stmt->setUInt( 4, item->getStackSize() );
|
stmt->setUInt( 4, item->getStackSize() );
|
||||||
|
|
||||||
pDb->execute( stmt );
|
pDb->directExecute( stmt );
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue