bullet: fix issue with result of get_contact() going out of scope

This commit is contained in:
rdb 2016-04-18 23:57:02 +02:00
parent 320f341467
commit 32b4273c94
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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: