mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
release the item after removing it from the array, rather than before
This commit is contained in:
parent
165600adc5
commit
de5bf80eb8
1 changed files with 2 additions and 2 deletions
|
@ -68,10 +68,10 @@
|
|||
|
||||
for (i = 0; i < count; i++)
|
||||
if (array[i] == item) {
|
||||
[item release];
|
||||
count--;
|
||||
for (n = i; n < count; n++)
|
||||
for (n = i--; n < count; n++)
|
||||
array[n] = array[n + 1];
|
||||
[item release];
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue