Fixed Listener::EventPending always returning true regardless of the event

This commit is contained in:
OM 2023-05-18 00:52:27 +02:00
parent 44b69efde5
commit 1e18b027a0

View file

@ -2796,7 +2796,7 @@ qboolean Listener::EventPending( Event &ev )
while( event != &Event::EventQueue )
{
if( ( event->GetSourceObject() == this ) && ( event->event->eventnum ) )
if( ( event->GetSourceObject() == this ) && ( event->event->eventnum == ev.eventnum ) )
{
return true;
}