Commit 00ecebc7 authored by thomas's avatar thomas
Browse files

no message


git-svn-id: https://svn.grrrr.org/ext/trunk@367 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent e1d55de9
......@@ -31,11 +31,11 @@ flext::AtomList::~AtomList() { Clear(); }
flext::AtomList &flext::AtomList::Set(int argc,const t_atom *argv,int offs)
{
if(lst && cnt != argc) { delete[] lst; lst = NULL; cnt = 0; }
int ncnt = argc+offs;
if(lst && cnt != ncnt) { delete[] lst; lst = NULL; cnt = 0; }
if(argc) {
cnt = argc;
lst = new t_atom[cnt];
if(ncnt) {
if(!lst) lst = new t_atom[cnt = ncnt];
if(argv) {
for(int i = 0; i < argc; ++i) SetAtom(lst[offs+i],argv[i]);
......@@ -124,3 +124,4 @@ flext::AtomList flext::AtomList::GetPart(int offs,int len) const
return AtomList(len,Atoms()+offs);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment