From 31d5aaf4572e1206a13be2c3bebd873e93ca0503 Mon Sep 17 00:00:00 2001 From: mordred Date: Fri, 4 Jan 2019 08:32:47 +0100 Subject: [PATCH] Fixed a spawngroup related linux crash --- src/world/Territory/Zone.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/world/Territory/Zone.cpp b/src/world/Territory/Zone.cpp index 1c782dc7..9cc4d30f 100644 --- a/src/world/Territory/Zone.cpp +++ b/src/world/Territory/Zone.cpp @@ -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() )