1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 14:57:44 +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()
{
auto pDb = m_pFw->get< Db::DbWorkerPool< Db::ZoneDbConnection > >();
auto res = pDb->query( "SELECT id, bNpcTemplateId, "
"level, maxHp "
"FROM spawnGroup "
auto res = pDb->query( "SELECT id, bNpcTemplateId, level, maxHp "
"FROM spawngroup "
"WHERE territoryTypeId = " + std::to_string( getTerritoryTypeId() ) + ";" );
while( res->next() )