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:
parent
8eee79b240
commit
31d5aaf457
1 changed files with 2 additions and 3 deletions
|
@ -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() )
|
||||
|
|
Loading…
Add table
Reference in a new issue