Changeset 5120 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Aug 25, 2005, 12:08:04 AM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/bounding_volume.cc
r5116 r5120 30 30 this->center = new Vector(); 31 31 this->bOrigVertices = true; 32 this->vertices = NULL; 32 33 } 33 34 … … 43 44 44 45 if( this->vertices && !this->bOrigVertices) 45 { 46 delete this->vertices; 47 this->vertices = NULL; 48 } 46 delete[] this->vertices; 49 47 } -
trunk/src/lib/collision_detection/obb.cc
r5116 r5120 32 32 this->halfLength = new float[3]; 33 33 this->bCollided = false; 34 this->vertices = NULL;35 34 } 36 35 -
trunk/src/lib/util/list.h
r5118 r5120 465 465 * grabs the iterator entity from another iterator 466 466 * @param iterator the iterator to grab the local currentEl from 467 * @returns the grabbed element (current). 467 * @returns the grabbed element (current). NULL if not found, or not defined 468 * 469 * Both iterators must be from the same List! 468 470 */ 469 471 template<class T> 470 472 T* tIterator<T>::iteratorElement(const tIterator<T>* iterator) 471 473 { 472 if (iterator != NULL )474 if (iterator != NULL && iterator->list == this->list) 473 475 { 474 476 this->currentEl = iterator->currentEl;
Note: See TracChangeset
for help on using the changeset viewer.