Skip to content

Commit

Permalink
Fixed crash on CPHCall::Check()
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 20, 2018
1 parent 6e357bf commit 7875d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrGame/PHCommander.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ CPHCall::~CPHCall()
bool CPHCall::obsolete() { return m_action->obsolete() || m_condition->obsolete(); }
void CPHCall::check()
{
if (m_condition->is_true())
if (m_condition->is_true() && m_action)
m_action->run();
}

Expand Down

0 comments on commit 7875d92

Please sign in to comment.