mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
SAGA: Fix odd memcmp() conditions, as reported by clang
Thanks to LordHoto for pointing those out - they followed the incorrect paradigm of previous code
This commit is contained in:
parent
ff0fcf5204
commit
72a523059f
@ -249,11 +249,11 @@ bool SndRes::load(ResourceContext *context, uint32 resourceId, SoundBuffer &buff
|
|||||||
|
|
||||||
if (!memcmp(header, "Creative", 8)) {
|
if (!memcmp(header, "Creative", 8)) {
|
||||||
resourceType = kSoundVOC;
|
resourceType = kSoundVOC;
|
||||||
} else if (!memcmp(header, "RIFF", 4) != 0) {
|
} else if (!memcmp(header, "RIFF", 4)) {
|
||||||
resourceType = kSoundWAV;
|
resourceType = kSoundWAV;
|
||||||
} else if (!memcmp(header, "FORM", 4) != 0) {
|
} else if (!memcmp(header, "FORM", 4)) {
|
||||||
resourceType = kSoundAIFF;
|
resourceType = kSoundAIFF;
|
||||||
} else if (!memcmp(header, "ajkg", 4) != 0) {
|
} else if (!memcmp(header, "ajkg", 4)) {
|
||||||
resourceType = kSoundShorten;
|
resourceType = kSoundShorten;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user