summaryrefslogtreecommitdiff
path: root/src/audio/AudioCollision.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-07 14:32:00 +0300
committerSergeanur <s.anureev@yandex.ua>2020-05-07 14:32:00 +0300
commit1ac6bea590aa07af40edd2cc2346f16f334096c5 (patch)
tree84d50d27b3d057f0160e304fec0a7849485cf41a /src/audio/AudioCollision.cpp
parented1bb7236f2a8cac55de8cdbd63a6dfca050f36c (diff)
Fix GetDistanceSquared
Diffstat (limited to 'src/audio/AudioCollision.cpp')
-rw-r--r--src/audio/AudioCollision.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/AudioCollision.cpp b/src/audio/AudioCollision.cpp
index 28d7f3cd..4eb74388 100644
--- a/src/audio/AudioCollision.cpp
+++ b/src/audio/AudioCollision.cpp
@@ -410,7 +410,7 @@ cAudioManager::ReportCollision(CEntity *entity1, CEntity *entity2, uint8 surface
v2 = entity2->GetPosition();
}
CVector pos = (v1 + v2) * 0.5f;
- distSquared = GetDistanceSquared(&pos);
+ distSquared = GetDistanceSquared(pos);
if(distSquared < SQR(CollisionSoundIntensity)) {
m_sCollisionManager.m_sQueue.m_pEntity1 = entity1;
m_sCollisionManager.m_sQueue.m_pEntity2 = entity2;