bullet: fix issue with result of get_contact() going out of scope
This commit is contained in:
parent
320f341467
commit
32b4273c94
|
|
@ -86,7 +86,7 @@ get_num_contacts() const {
|
|||
/**
|
||||
*
|
||||
*/
|
||||
INLINE BulletContact &BulletContactResult::
|
||||
INLINE BulletContact BulletContactResult::
|
||||
get_contact(int idx) {
|
||||
|
||||
nassertr(idx >= 0 && idx < (int)_contacts.size(), _empty);
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ struct EXPCL_PANDABULLET BulletContactResult : public btCollisionWorld::ContactR
|
|||
|
||||
PUBLISHED:
|
||||
INLINE int get_num_contacts() const;
|
||||
INLINE BulletContact &get_contact(int idx);
|
||||
INLINE BulletContact get_contact(int idx);
|
||||
MAKE_SEQ(get_contacts, get_num_contacts, get_contact);
|
||||
|
||||
public:
|
||||
|
|
|
|||
Loading…
Reference in New Issue