diff options
author | whiterandrek | 2018-06-20 22:49:18 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 8477a61d621fb09b7f78e1fbe3122a13522fd85d (patch) | |
tree | 0451493245dc920eac61a8cb57c054548d90f0db /engines/pink | |
parent | 9792e8651ff32bd9af59713223d10109c92b1bdb (diff) | |
download | scummvm-rg350-8477a61d621fb09b7f78e1fbe3122a13522fd85d.tar.gz scummvm-rg350-8477a61d621fb09b7f78e1fbe3122a13522fd85d.tar.bz2 scummvm-rg350-8477a61d621fb09b7f78e1fbe3122a13522fd85d.zip |
PINK: make comparison to character constants endianness independent
Diffstat (limited to 'engines/pink')
-rw-r--r-- | engines/pink/file.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/pink/file.cpp b/engines/pink/file.cpp index f399634f43..7a760d1039 100644 --- a/engines/pink/file.cpp +++ b/engines/pink/file.cpp @@ -51,7 +51,7 @@ OrbFile::~OrbFile() { } bool OrbFile::open(const Common::String &name) { - if (!File::open(name) || readUint32BE() != 'ORB\0') + if (!File::open(name) || readUint32BE() != MKTAG('O', 'R', 'B', '\0')) return false; uint16 minor = readUint16LE(); @@ -123,7 +123,7 @@ void OrbFile::seekToObject(const char *name) { } bool BroFile::open(const Common::String &name) { - if (!File::open(name) || readUint32BE() != 'BRO\0') + if (!File::open(name) || readUint32BE() != MKTAG('B', 'R', 'O', '\0')) return false; uint16 minor = readUint16LE(); |