aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2007-05-12 13:39:53 +0000
committerMax Horn2007-05-12 13:39:53 +0000
commita7ced58d9a24bae745ef2b10e5975643c395c526 (patch)
tree12d7235b28a266f26ec96403095bb1328f89eebe /engines
parented796d164adb14566670b69ac496c4be08f731b2 (diff)
downloadscummvm-rg350-a7ced58d9a24bae745ef2b10e5975643c395c526.tar.gz
scummvm-rg350-a7ced58d9a24bae745ef2b10e5975643c395c526.tar.bz2
scummvm-rg350-a7ced58d9a24bae745ef2b10e5975643c395c526.zip
Don't cast pointers to int, this (potentially) breaks 64 bit systems
svn-id: r26806
Diffstat (limited to 'engines')
-rw-r--r--engines/cruise/function.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp
index 9ab3e3a835..5971d191fa 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;
}