From b247470cb7825d9e3042f41a467fccb33efd80ca Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Wed, 6 Jul 2022 15:03:53 +0300 Subject: [PATCH] Fix check --- src/sound_effects_cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound_effects_cache.cc b/src/sound_effects_cache.cc index e7af03d..eaae80c 100644 --- a/src/sound_effects_cache.cc +++ b/src/sound_effects_cache.cc @@ -176,7 +176,7 @@ int soundEffectsCacheFileOpen(const char* fname, int mode, ...) void* data; CacheEntry* cacheHandle; - if (cacheLock(gSoundEffectsCache, tag, &data, &cacheHandle) == -1) { + if (!cacheLock(gSoundEffectsCache, tag, &data, &cacheHandle)) { return -1; }