aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/polygons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tinsel/polygons.cpp')
-rw-r--r--engines/tinsel/polygons.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tinsel/polygons.cpp b/engines/tinsel/polygons.cpp
index 6f904e9372..69031d7a9b 100644
--- a/engines/tinsel/polygons.cpp
+++ b/engines/tinsel/polygons.cpp
@@ -1041,8 +1041,8 @@ int GetBrightness(HPOLYGON hPath, int y) {
Poly pp(LockMem(pHandle), Polys[hPath]->pIndex);
// Path is of a constant brightness?
- if (pp.bright1 == pp.bright2)
- return pp.bright1;
+ if (FROM_LE_32(pp.bright1) == FROM_LE_32(pp.bright2))
+ return FROM_LE_32(pp.bright1);
assert(FROM_LE_32(pp.bright1) >= FROM_LE_32(pp.bright2));