From 4fe3a87d3c09a22da49fb1f3e49e26751e7d4471 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 15 Mar 2020 14:36:36 +0100 Subject: ok --- src/ft_sfx_pain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ft_sfx_pain.c') 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 -- cgit v1.2.3