diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp index 9ab3e3a835d..5971d191fa4 100644 --- a/engines/cruise/function.cpp +++ b/engines/cruise/function.cpp @@ -1083,8 +1083,7 @@ void checkCollisionWithWalkBoxesBoundingBoxes(int x, int y) { ctpVar19SubStruct *subStruct; - if (-1 == (int)di->field_0) // ok, ugly, but it's in the original - { + if ((ctpVar19Struct *)-1 == di->field_0) { // ok, ugly, but it's in the original flag_obstacle = 0; return; }