Skip to content

Commit 7875d92

Browse files
committed
Fixed crash on CPHCall::Check()
1 parent 6e357bf commit 7875d92

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())
25+
if (m_condition->is_true() && m_action)
2626
m_action->run();
2727
}
2828

0 commit comments

Comments
 (0)