summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2014-01-27 02:43:11 +0000
committerSimon Howard2014-01-27 02:43:11 +0000
commit4cc85f4c99939e301ff3d1eb690be7475ac131f0 (patch)
tree4417c28d8a6090f36383638e95f938e37a0d3313
parent29e7b9d813046415ca385b8fcea4c39249f9e78e (diff)
downloadchocolate-doom-4cc85f4c99939e301ff3d1eb690be7475ac131f0.tar.gz
chocolate-doom-4cc85f4c99939e301ff3d1eb690be7475ac131f0.tar.bz2
chocolate-doom-4cc85f4c99939e301ff3d1eb690be7475ac131f0.zip
sound: Fix swapped parameters for function.
CheckVolumeSeparation() has the sep and vol parameters backwards compared to how they are used when the function is called. Reverse the order to fix this (thanks proteal). Fixes #330.
-rw-r--r--src/i_sound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i_sound.c b/src/i_sound.c
index 5106cf97..f12c8204 100644
--- a/src/i_sound.c
+++ b/src/i_sound.c
@@ -271,7 +271,7 @@ void I_UpdateSound(void)
}
}
-static void CheckVolumeSeparation(int *sep, int *vol)
+static void CheckVolumeSeparation(int *vol, int *sep)
{
if (*sep < 0)
{