1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-04 17:57:47 +00:00

Initialize all lands to state 1

This commit is contained in:
Mordred 2018-11-03 11:42:09 +01:00
parent c7cb95175d
commit 12cb928f33

View file

@ -44,6 +44,8 @@ Core::Land::~Land()
void Core::Land::load() void Core::Land::load()
{ {
m_land.houseSize = 1;
m_land.houseState = 1;
// setPreset( 262145 ); // setPreset( 262145 );
/* auto pDb = g_fw.get< Db::DbWorkerPool< Db::ZoneDbConnection > >(); /* auto pDb = g_fw.get< Db::DbWorkerPool< Db::ZoneDbConnection > >();
auto res = pDb->query( "SELECT * FROM land WHERE Id = " + std::to_string( m_landKey ) ); auto res = pDb->query( "SELECT * FROM land WHERE Id = " + std::to_string( m_landKey ) );