From 3a5d0bb9f47e24811dca258764f10d1d3667dc96 Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 28 May 2026 14:29:58 +0900 Subject: [PATCH] fix --- engine/src/mixer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/mixer.cc b/engine/src/mixer.cc index fb6f461..e629d39 100644 --- a/engine/src/mixer.cc +++ b/engine/src/mixer.cc @@ -43,7 +43,7 @@ void fishbone::Mixer::read(short* buffer, size_t frames) { float d; float lf, rf; - for(int j = 0; j < 3; j++) r[j] = this->sounds[i]->position[j] - this->position[j]; + for(int j = 0; j < 3; j++) r[j] = this->position[i] - this->sounds[i]->position[j]; angle = atan2(r[2], r[0]); v = cos(angle);