From 2a1b80fe187dd3e67fe02373aa0f1173bb45f467 Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Mon, 8 Feb 2016 21:24:56 +0100 Subject: TINSEL: Fix crash on big-endian hosts --- engines/tinsel/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/tinsel') diff --git a/engines/tinsel/graphics.cpp b/engines/tinsel/graphics.cpp index 0282aff3cb..2ff96a9b64 100644 --- a/engines/tinsel/graphics.cpp +++ b/engines/tinsel/graphics.cpp @@ -164,7 +164,7 @@ static void t0WrtNonZero(DRAWOBJECT *pObj, uint8 *srcP, uint8 *destP, bool apply // Horizontal loop for (int x = 0; x < pObj->width; ) { - uint32 numBytes = READ_UINT32(srcP); + uint32 numBytes = READ_LE_UINT32(srcP); srcP += sizeof(uint32); bool repeatFlag = (numBytes & 0x80000000L) != 0; numBytes &= 0x7fffffff; -- cgit v1.2.3