1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 07:07:45 +00:00

Fixed a spawngroup related linux crash

This commit is contained in:
mordred 2019-01-04 08:32:47 +01:00
parent 8eee79b240
commit 31d5aaf457

View file

@ -763,9 +763,8 @@ Sapphire::Data::TerritoryTypePtr Sapphire::Zone::getTerritoryTypeInfo() const
bool Sapphire::Zone::loadSpawnGroups() bool Sapphire::Zone::loadSpawnGroups()
{ {
auto pDb = m_pFw->get< Db::DbWorkerPool< Db::ZoneDbConnection > >(); auto pDb = m_pFw->get< Db::DbWorkerPool< Db::ZoneDbConnection > >();
auto res = pDb->query( "SELECT id, bNpcTemplateId, " auto res = pDb->query( "SELECT id, bNpcTemplateId, level, maxHp "
"level, maxHp " "FROM spawngroup "
"FROM spawnGroup "
"WHERE territoryTypeId = " + std::to_string( getTerritoryTypeId() ) + ";" ); "WHERE territoryTypeId = " + std::to_string( getTerritoryTypeId() ) + ";" );
while( res->next() ) while( res->next() )