mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-05 10:17:46 +00:00
WiP Fix houses not being loaded after restart
This commit is contained in:
parent
fb425c3213
commit
e7bc21a1f2
2 changed files with 6 additions and 6 deletions
|
@ -80,8 +80,8 @@ bool HousingMgr::init()
|
||||||
Logger::info( "HousingMgr: Caching housing land init data" );
|
Logger::info( "HousingMgr: Caching housing land init data" );
|
||||||
//LAND_SEL_ALL
|
//LAND_SEL_ALL
|
||||||
|
|
||||||
// 18 wards per territory, 4 territories
|
// 12 wards per territory, 2 territories
|
||||||
m_landCache.reserve( 18 * 4 );
|
m_landCache.reserve( 12 * 2 );
|
||||||
|
|
||||||
initLandCache();
|
initLandCache();
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ bool HousingMgr::loadEstateInventories()
|
||||||
{
|
{
|
||||||
Logger::info( "HousingMgr: Loading inventories for estates" );
|
Logger::info( "HousingMgr: Loading inventories for estates" );
|
||||||
|
|
||||||
/* auto& db = Common::Service< Db::DbWorkerPool< Db::ZoneDbConnection > >::ref();
|
auto& db = Common::Service< Db::DbWorkerPool< Db::ZoneDbConnection > >::ref();
|
||||||
|
|
||||||
auto stmt = db.getPreparedStatement( Db::LAND_INV_SEL_ALL );
|
auto stmt = db.getPreparedStatement( Db::LAND_INV_SEL_ALL );
|
||||||
auto res = db.query( stmt );
|
auto res = db.query( stmt );
|
||||||
|
@ -166,7 +166,7 @@ bool HousingMgr::loadEstateInventories()
|
||||||
itemCount++;
|
itemCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger::debug( "HousingMgr: Loaded {0} inventory items", itemCount );*/
|
Logger::debug( "HousingMgr: Loaded {0} inventory items", itemCount );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,8 +138,8 @@ bool Sapphire::HousingZone::init()
|
||||||
m_landPtrMap[ entry.m_landId ] = land;
|
m_landPtrMap[ entry.m_landId ] = land;
|
||||||
|
|
||||||
// TODO: Fixme
|
// TODO: Fixme
|
||||||
// if( entry.m_houseId > 0 )
|
if( entry.m_houseId > 0 )
|
||||||
// registerEstateEntranceEObj( entry.m_landId );
|
registerEstateEntranceEObj( entry.m_landId );
|
||||||
|
|
||||||
updateYardObjects( land->getLandIdent() );
|
updateYardObjects( land->getLandIdent() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue