| 170 | //----------------------------------------------------------------------------- |
| 171 | |
| 172 | void SimPersistSet::addObject( SimObject* object ) |
| 173 | { |
| 174 | // If this set isn't transient, make sure the object has a valid |
| 175 | // persistent ID. |
| 176 | |
| 177 | if( getCanSave() ) |
| 178 | object->getOrCreatePersistentId(); |
| 179 | |
| 180 | Parent::addObject( object ); |
| 181 | } |
| 182 | |
| 183 | //============================================================================= |
| 184 | // Console Methods. |
nothing calls this directly
no test coverage detected