Fixed creeper calling TargetIsInRange with null m_Target
This commit is contained in:
parent
d4e99aedb1
commit
3a24ed4b61
@ -27,7 +27,7 @@ void cCreeper::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
|
||||
{
|
||||
super::Tick(a_Dt, a_Chunk);
|
||||
|
||||
if (!TargetIsInRange() && !m_BurnedWithFlintAndSteel)
|
||||
if ((m_Target == nullptr) || (!TargetIsInRange() && !m_BurnedWithFlintAndSteel))
|
||||
{
|
||||
if (m_bIsBlowing)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user