1
0

PathFinder - Fixed nullptr chunk bug

This commit is contained in:
wiseoldman95 2015-05-03 19:30:28 +03:00
parent 9226bdbd4c
commit 33ffa420a6

View File

@ -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;
}