mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
make sure the view being moved from viewlist to group doesn't get freed by
accident
This commit is contained in:
parent
66cabb587f
commit
be83a5f5c0
1 changed files with 4 additions and 2 deletions
|
@ -25,8 +25,10 @@
|
|||
|
||||
- (id) addViews: (Array)viewlist
|
||||
{
|
||||
while ([viewlist count])
|
||||
[self addView:[viewlist removeItemAt:0]];
|
||||
while ([viewlist count]) {
|
||||
[self addView:[viewlist getItemAt:0]];
|
||||
[viewlist removeItemAt:0];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue