Skip to content

Commit

Permalink
исправлен вылет при построении пути НПЦ, когда актор еще не вышел в о…
Browse files Browse the repository at this point in the history
…нлайн. Взята из ЗП.
  • Loading branch information
abramcumner committed Aug 29, 2017
1 parent 92a2e89 commit 99a0fd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xray/xrGame/ai/monsters/control_path_builder.cpp
Expand Up @@ -264,7 +264,8 @@ void CControlPathBuilder::make_inactual()

bool CControlPathBuilder::can_use_distributed_computations (u32 option) const
{
VERIFY(Actor());
if (!g_actor)
return true;
VERIFY(inherited_com::m_object);
if (Actor()->memory().visual().visible_right_now(inherited_com::m_object)) return false;
return inherited::can_use_distributed_computations(option);
Expand Down

0 comments on commit 99a0fd1

Please sign in to comment.