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:
Filippos Karapetis 2013-07-02 03:32:34 +03:00
parent ff0fcf5204
commit 72a523059f

View File

@ -249,11 +249,11 @@ bool SndRes::load(ResourceContext *context, uint32 resourceId, SoundBuffer &buff
if (!memcmp(header, "Creative", 8)) {
resourceType = kSoundVOC;
} else if (!memcmp(header, "RIFF", 4) != 0) {
} else if (!memcmp(header, "RIFF", 4)) {
resourceType = kSoundWAV;
} else if (!memcmp(header, "FORM", 4) != 0) {
} else if (!memcmp(header, "FORM", 4)) {
resourceType = kSoundAIFF;
} else if (!memcmp(header, "ajkg", 4) != 0) {
} else if (!memcmp(header, "ajkg", 4)) {
resourceType = kSoundShorten;
}