diff --git a/src/common/Logging/Logger.cpp b/src/common/Logging/Logger.cpp index bc063b25..221f9291 100644 --- a/src/common/Logging/Logger.cpp +++ b/src/common/Logging/Logger.cpp @@ -1,6 +1,6 @@ #include "Logger.h" -#define SPDLOG_LEVEL_NAMES { "trace", "debug", "info", "warning", "error", "fatal", "off" } +#define SPDLOG_LEVEL_NAMES { "trace", "debug", "info", "warn", "error", "fatal", "off" } #include #include diff --git a/src/world/Actor/BNpc.cpp b/src/world/Actor/BNpc.cpp index 841ff2b9..57b0a842 100644 --- a/src/world/Actor/BNpc.cpp +++ b/src/world/Actor/BNpc.cpp @@ -401,6 +401,9 @@ void Sapphire::Entity::BNpc::update( uint64_t tickCount ) auto pNaviProvider = m_pCurrentZone->getNaviProvider(); + if( !pNaviProvider ) + return; + switch( m_state ) { case BNpcState::Dead: diff --git a/src/world/Territory/Zone.cpp b/src/world/Territory/Zone.cpp index e735c6d1..339f6399 100644 --- a/src/world/Territory/Zone.cpp +++ b/src/world/Territory/Zone.cpp @@ -138,8 +138,7 @@ bool Sapphire::Zone::init() if( !m_pNaviProvider ) { - Logger::fatal( "No navmesh found for TerritoryType#{}", getTerritoryTypeId() ); - throw std::runtime_error( "Missing navmesh file(s)." ); + Logger::warn( "No navmesh found for TerritoryType#{}", getTerritoryTypeId() ); } return true;