| 25 |
|
|
| 26 |
|
*/ |
| 27 |
|
|
| 28 |
+ |
StuntDouble::~StuntDouble(){ |
| 29 |
+ |
map<string, GenericData*>::iterator iter; |
| 30 |
+ |
|
| 31 |
+ |
for(iter = properties.begin(); iter != properties.end(); ){ |
| 32 |
+ |
delete iter->second; |
| 33 |
+ |
iter = properties.erase(iter); |
| 34 |
+ |
} |
| 35 |
+ |
|
| 36 |
+ |
} |
| 37 |
+ |
|
| 38 |
|
int StuntDouble::getObjType(){ |
| 39 |
|
return objType; |
| 40 |
|
} |
| 632 |
|
|
| 633 |
|
result = properties.find(propName); |
| 634 |
|
|
| 635 |
< |
if(result != properties.end()) |
| 635 |
> |
if(result != properties.end()){ |
| 636 |
> |
delete result->second; |
| 637 |
|
properties.erase(result); |
| 638 |
+ |
|
| 639 |
+ |
} |
| 640 |
|
|
| 641 |
|
} |
| 642 |
|
GenericData* StuntDouble::getProperty(const string& propName){ |