diff --git a/src/kits/game/GameSoundBuffer.cpp b/src/kits/game/GameSoundBuffer.cpp index a99b2a5e6e..4ceeb3ee03 100644 --- a/src/kits/game/GameSoundBuffer.cpp +++ b/src/kits/game/GameSoundBuffer.cpp @@ -214,7 +214,7 @@ GameSoundBuffer::GetAttributes(gs_attribute * attributes, case B_GS_PAN: attributes[i].value = fPan; if (fPanRamp) - attributes[i].duration = fGainRamp->duration; + attributes[i].duration = fPanRamp->duration; break; case B_GS_LOOPING: