From 00e5b84f9fc18af7b14dee52a24414a68a1d6ad0 Mon Sep 17 00:00:00 2001 From: Joost Peters Date: Sun, 1 Feb 2009 23:06:35 +0000 Subject: endian fix svn-id: r36196 --- engines/tinsel/polygons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/tinsel/polygons.cpp b/engines/tinsel/polygons.cpp index 4193eaa4d8..6f904e9372 100644 --- a/engines/tinsel/polygons.cpp +++ b/engines/tinsel/polygons.cpp @@ -214,7 +214,7 @@ void Poly::nextPoly() { const byte *pRecord = _pData; int typeVal = nextLong(_pData); - if ((typeVal == 5) && TinselV2) ++typeVal; + if ((FROM_LE_32(typeVal) == 5) && TinselV2) typeVal = TO_LE_32(6); type = (POLY_TYPE)typeVal; for (int i = 0; i < 4; ++i) x[i] = nextLong(_pData); -- cgit v1.2.3