mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 05:34:20 +02:00
commit implementation of deleteLastCollision()
This commit is contained in:
parent
f6b2b43376
commit
ddc9408a55
1 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,12 @@ CollisionInfo* CollisionList::getNewCollision() {
|
|||
return (_size < _maxSize) ? &(_collisions[_size++]) : NULL;
|
||||
}
|
||||
|
||||
void CollisionList::deleteLastCollision() {
|
||||
if (_size > 0) {
|
||||
--_size;
|
||||
}
|
||||
}
|
||||
|
||||
CollisionInfo* CollisionList::getCollision(int index) {
|
||||
return (index > -1 && index < _size) ? &(_collisions[index]) : NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue