Skip to content

Commit 522bea7

Browse files
committed
Fix crash in CPHCall::check
1 parent c299169 commit 522bea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrGame/PHCommander.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ CPHCall::~CPHCall()
2222
bool CPHCall::obsolete() { return m_action->obsolete() || m_condition->obsolete(); }
2323
void CPHCall::check()
2424
{
25-
if (m_condition->is_true() && m_action)
25+
if (m_condition && m_condition->is_true() && m_action)
2626
m_action->run();
2727
}
2828

0 commit comments

Comments
 (0)