aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorFilippos Karapetis2013-07-02 03:32:34 +0300
committerFilippos Karapetis2013-07-02 03:53:09 +0300
commit72a523059f4a3c8c4baa77f504b3adecb87d3359 (patch)
tree2351a67aa7dc104db4c4f787d0aa3e260bfa3153 /engines/saga
parentff0fcf52044e9c643637440fad8057dff811b448 (diff)
downloadscummvm-rg350-72a523059f4a3c8c4baa77f504b3adecb87d3359.tar.gz
scummvm-rg350-72a523059f4a3c8c4baa77f504b3adecb87d3359.tar.bz2
scummvm-rg350-72a523059f4a3c8c4baa77f504b3adecb87d3359.zip
SAGA: Fix odd memcmp() conditions, as reported by clang
Thanks to LordHoto for pointing those out - they followed the incorrect paradigm of previous code
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/sndres.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/saga/sndres.cpp b/engines/saga/sndres.cpp
index 49d24753a1..ca843af465 100644
--- a/engines/saga/sndres.cpp
+++ b/engines/saga/sndres.cpp
@@ -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;
}