mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Allow nil when replacing objects in an array.
I want this in a little project, but I also want to consult with Deek about it, so I've only commented out the code.
This commit is contained in:
parent
f631f514e9
commit
7ed490c434
1 changed files with 2 additions and 2 deletions
|
@ -288,8 +288,8 @@
|
|||
{
|
||||
local id tmp;
|
||||
|
||||
if (!anObject) // FIXME: need exceptions
|
||||
[self error: "-replaceObjectAtIndex:withObject: passed nil object"];
|
||||
//if (!anObject) // FIXME: need exceptions
|
||||
// [self error: "-replaceObjectAtIndex:withObject: passed nil object"];
|
||||
if (index >= count) // FIXME: need exceptions
|
||||
[self error: "-replaceObjectAtIndex:withObject: index out of range"];
|
||||
|
||||
|
|
Loading…
Reference in a new issue