PathFinder - Fixed nullptr chunk bug
This commit is contained in:
parent
9226bdbd4c
commit
33ffa420a6
@ -117,7 +117,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user