Tier1: add assert in CCommand::Arg()

This code path shouldn't be hit.
This commit is contained in:
Kawe Mazidjatari 2024-01-14 22:57:52 +01:00
parent d8417ca455
commit 5882debcc4

View File

@ -130,6 +130,7 @@ inline const char* CCommand::Arg(int nIndex) const
// do the extra check and return an empty string if it's out of range
if (nIndex < 0 || nIndex >= m_nArgc)
{
Assert(0);
return "";
}
return m_ppArgv[nIndex];