aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_sfx_pain.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_sfx_pain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_sfx_pain.c b/src/ft_sfx_pain.c
index 780cb73..962dcae 100644
--- a/src/ft_sfx_pain.c
+++ b/src/ft_sfx_pain.c
@@ -31,9 +31,9 @@ void
ref += 1;
if (ref > 201)
ref = 0;
- pthread_mutex_lock(&sfx->pain_mutex);
if (ref % 2)
{
+ pthread_mutex_lock(&sfx->pain_mutex);
if (ref % 3)
system(sfx->pain_one);
else