diff --git a/src/Mobs/Path.cpp b/src/Mobs/Path.cpp index f414b4c9e..2dd2a3c99 100644 --- a/src/Mobs/Path.cpp +++ b/src/Mobs/Path.cpp @@ -115,7 +115,7 @@ bool cPath::IsSolid(const Vector3d & a_Location) { ASSERT(m_Chunk != nullptr); m_Chunk = m_Chunk->GetNeighborChunk(a_Location.x, a_Location.z); - if (!m_Chunk->IsValid()) + if ((m_Chunk == nullptr) || (!m_Chunk->IsValid())) { return true; }