Skip to content

Commit

Permalink
Fix crash in CPHCall::check
Browse files Browse the repository at this point in the history
  • Loading branch information
theysani committed Jul 27, 2018
1 parent c299169 commit 522bea7
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() && m_action)
if (m_condition && m_condition->is_true() && m_action)
m_action->run();
}

Expand Down

0 comments on commit 522bea7

Please sign in to comment.