Fixed incorrect invalid index check
This commit is contained in:
parent
42955b7e01
commit
0f471d9b7a
@ -75,7 +75,7 @@ inline const char* DemoCmdToString(unsigned int cmd)
|
|||||||
"dem_stop",
|
"dem_stop",
|
||||||
"dem_stringtables"
|
"dem_stringtables"
|
||||||
};
|
};
|
||||||
if (cmd > (sizeof(cmdNames) / sizeof(const char*)))
|
if (cmd >= (sizeof(cmdNames) / sizeof(const char*)))
|
||||||
{
|
{
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user