From cc270ee3ff82d7766dcbc0eee54cdc34d09bff4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 20 Mar 2022 13:15:46 +0100 Subject: ksys/phys: Change getRigidBody to take a const-ref for consistency --- src/KingSystem/Physics/System/physShapeCast.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/KingSystem/Physics/System/physShapeCast.cpp') diff --git a/src/KingSystem/Physics/System/physShapeCast.cpp b/src/KingSystem/Physics/System/physShapeCast.cpp index cefed97b..024cb395 100644 --- a/src/KingSystem/Physics/System/physShapeCast.cpp +++ b/src/KingSystem/Physics/System/physShapeCast.cpp @@ -156,7 +156,7 @@ bool ShapeCast::registerContactPoint(const hkpRootCdPoint& point, RigidBody* bod if (!mContactPointInfo->testContactPointDistance(point.getContact().getDistance())) return false; - auto* hit_body = getRigidBody(hit_entity); + auto* hit_body = getRigidBody(*hit_entity); if (System::instance()->getEntityContactListenerField91() && hit_body->isEntity() && EntityContactListener::isObjectOrGroundOrNPCOrTree(*hit_body)) { @@ -216,7 +216,7 @@ void FilteredClosestCdPointCollector::addCdPoint(const hkpCdPoint& point) { if (!hit_entity) return; - auto* hit_body = getRigidBody(hit_entity); + auto* hit_body = getRigidBody(*hit_entity); if (System::instance()->getEntityContactListenerField91() && hit_body->isEntity() && EntityContactListener::isObjectOrGroundOrNPCOrTree(*hit_body)) { -- cgit v1.2.3