Merge pull request #1934 from SafwatHalaby/p_IsSolidChunks
PathFinder - Fixed nullptr chunk bug
This commit is contained in:
commit
335879e224
@ -115,7 +115,7 @@ bool cPath::IsSolid(const Vector3d & a_Location)
|
|||||||
{
|
{
|
||||||
ASSERT(m_Chunk != nullptr);
|
ASSERT(m_Chunk != nullptr);
|
||||||
m_Chunk = m_Chunk->GetNeighborChunk(a_Location.x, a_Location.z);
|
m_Chunk = m_Chunk->GetNeighborChunk(a_Location.x, a_Location.z);
|
||||||
if (!m_Chunk->IsValid())
|
if ((m_Chunk == nullptr) || (!m_Chunk->IsValid()))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user