mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-20 10:43:29 +00:00
[libr] Fix incorrect bounds check on array insert
This commit is contained in:
parent
f025bd96d4
commit
679744fc7d
1 changed files with 1 additions and 1 deletions
|
@ -261,7 +261,7 @@
|
|||
{
|
||||
local unsigned i;
|
||||
|
||||
if (index >= count) // FIXME: need exceptions
|
||||
if (index > count) // FIXME: need exceptions
|
||||
[self error: "-insertObject:atIndex: index out of range"];
|
||||
|
||||
if (count == capacity) { // at capacity, expand
|
||||
|
|
Loading…
Reference in a new issue