Fix check
This commit is contained in:
parent
a712b63633
commit
b247470cb7
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue