diff options
author | wiseoldman95 <softwatt@gmx.com> | 2015-05-03 18:30:28 +0200 |
---|---|---|
committer | wiseoldman95 <softwatt@gmx.com> | 2015-05-03 18:43:11 +0200 |
commit | 33ffa420a6877f8ced078ae483964f5f422ab88e (patch) | |
tree | 048e1a512ae815a3766a3658b361abff9af7ca1a /src/Mobs/Path.cpp | |
parent | Merge pull request #1925 from SafwatHalaby/PathFinder_Optimze (diff) | |
download | cuberite-33ffa420a6877f8ced078ae483964f5f422ab88e.tar cuberite-33ffa420a6877f8ced078ae483964f5f422ab88e.tar.gz cuberite-33ffa420a6877f8ced078ae483964f5f422ab88e.tar.bz2 cuberite-33ffa420a6877f8ced078ae483964f5f422ab88e.tar.lz cuberite-33ffa420a6877f8ced078ae483964f5f422ab88e.tar.xz cuberite-33ffa420a6877f8ced078ae483964f5f422ab88e.tar.zst cuberite-33ffa420a6877f8ced078ae483964f5f422ab88e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Path.cpp b/src/Mobs/Path.cpp index 32eff9d2b..d1b9d6963 100644 --- a/src/Mobs/Path.cpp +++ b/src/Mobs/Path.cpp @@ -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; } |