mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Tier1: add assert in CCommand::Arg()
This code path shouldn't be hit.
This commit is contained in:
parent
d8417ca455
commit
5882debcc4
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user