Fix check

This commit is contained in:
Alexander Batalov 2022-07-06 15:03:53 +03:00
parent a712b63633
commit b247470cb7
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ int soundEffectsCacheFileOpen(const char* fname, int mode, ...)
void* data; void* data;
CacheEntry* cacheHandle; CacheEntry* cacheHandle;
if (cacheLock(gSoundEffectsCache, tag, &data, &cacheHandle) == -1) { if (!cacheLock(gSoundEffectsCache, tag, &data, &cacheHandle)) {
return -1; return -1;
} }