| # | Line 13 | Line 13 | class StuntDouble { | |
|---|---|---|
| 13 | ||
| 14 | class StuntDouble { | |
| 15 | public: | |
| 16 | + | virtual ~StuntDouble(); |
| 17 | ||
| 18 | int getObjType(); | |
| 19 | ||
| # | Line 81 | Line 82 | class StuntDouble { | |
| 82 | ||
| 83 | protected: | |
| 84 | StuntDouble(){} | |
| 85 | + | |
| 86 | + | //prevent default copy constructor copy information from properties which will cause problem |
| 87 | + | StuntDouble(const StuntDouble& sd){ |
| 88 | + | objType = sd.objType; |
| 89 | + | } |
| 90 | + | |
| 91 | int objType; | |
| 92 | ||
| 93 | map<string, GenericData*> properties; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |