diff --git a/src/engine/input.h b/src/engine/input.h index 180bcb5d5..2b8e08f45 100644 --- a/src/engine/input.h +++ b/src/engine/input.h @@ -58,11 +58,7 @@ public: virtual bool IsEventValid(CEvent *pEvent) const = 0; CEvent GetEvent(int Index) const { - if(Index < 0 || Index >= m_NumEvents) - { - IInput::CEvent e = {0, 0}; - return e; - } + dbg_assert(Index >= 0 && Index < m_NumEvents, "Index invalid"); return m_aInputEvents[Index]; } CEvent *GetEventsRaw() { return m_aInputEvents; }