From c6cf4827d719c1833ce4d7e108410db81f00c358 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 10 Dec 2012 17:17:16 +0200 Subject: TINSEL: Revert most of the engine BE resource handling code This was added in commit 3fdddd53b2b970aae3e967bebc0bff6e642a5111. However, having handling for both BE and LE resource complicates the engine code unnecessarily. Thus, a different approach will be done. --- engines/tinsel/scn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/tinsel/scn.cpp') diff --git a/engines/tinsel/scn.cpp b/engines/tinsel/scn.cpp index 70093447ff..168dcf464f 100644 --- a/engines/tinsel/scn.cpp +++ b/engines/tinsel/scn.cpp @@ -54,11 +54,11 @@ byte *FindChunk(SCNHANDLE handle, uint32 chunk) { chunk -= 0x2L; while (1) { - if (READ_32(lptr) == chunk) + if (READ_LE_UINT32(lptr) == chunk) return (byte *)(lptr + 2); ++lptr; - add = READ_32(lptr); + add = READ_LE_UINT32(lptr); if (!add) // End of file reached -- cgit v1.2.3