diff options
Diffstat (limited to 'engines/tinsel')
-rw-r--r-- | engines/tinsel/polygons.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |