diff options
| author | Léo Lam <leo@leolam.fr> | 2022-03-20 13:15:46 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2022-03-20 13:21:51 +0100 |
| commit | cc270ee3ff82d7766dcbc0eee54cdc34d09bff4c (patch) | |
| tree | add6a86423931e1f4789de25084623084f5e2c47 /src/KingSystem/Physics/System/physShapeCast.cpp | |
| parent | 5a31fe8a9d660d0242a29843ecadb16eb9999d4e (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.cpp | 4 |
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)) { |
