Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/game/server/logicrelay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,15 @@ void CLogicRelay::InputEnableRefire( inputdata_t &inputdata )
//------------------------------------------------------------------------------
void CLogicRelay::InputCancelPending( inputdata_t &inputdata )
{
g_EventQueue.CancelEvents( this );
// We don't want to allow the logic relay to cancelpending itself. This will eventually lead to a crash!
if ( inputdata.pCaller != this )
{
g_EventQueue.CancelEvents( this );
}
else
{
Warning("Entity %s - (%s) is attempting to CancelPending itself. This is not allowed!\n", this->GetEntityName(), this->GetClassname());
}

// Stop waiting; allow another Trigger.
m_bWaitForRefire = false;
Expand Down