Changeset 648 for cpp/frams


Ignore:
Timestamp:
02/02/17 15:12:54 (8 years ago)
Author:
Maciej Komosinski
Message:

Warn when trying to remove non-existing indexed object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/vm/classes/collectionobj.cpp

    r642 r648  
    116116if (readonly) return;
    117117int i=args->getInt();
    118 if ((i<0)||(i>=data.size())) return;
     118if (!listIndexCheck(&data,i,"VectorObject","remove")) return;
    119119ExtValue *v=(ExtValue*)data.get(i);
    120120if (v) delete v;
Note: See TracChangeset for help on using the changeset viewer.