summaryrefslogtreecommitdiff
path: root/src/KingSystem/Physics/System/physShapeCast.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-03-20 13:15:46 +0100
committerLéo Lam <leo@leolam.fr>2022-03-20 13:21:51 +0100
commitcc270ee3ff82d7766dcbc0eee54cdc34d09bff4c (patch)
treeadd6a86423931e1f4789de25084623084f5e2c47 /src/KingSystem/Physics/System/physShapeCast.cpp
parent5a31fe8a9d660d0242a29843ecadb16eb9999d4e (diff)
ksys/phys: Change getRigidBody to take a const-ref for consistency
Diffstat (limited to 'src/KingSystem/Physics/System/physShapeCast.cpp')
-rw-r--r--src/KingSystem/Physics/System/physShapeCast.cpp4
1 files changed, 2 insertions, 2 deletions
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)) {