diff options
author | Max Horn | 2007-05-12 13:39:53 +0000 |
---|---|---|
committer | Max Horn | 2007-05-12 13:39:53 +0000 |
commit | a7ced58d9a24bae745ef2b10e5975643c395c526 (patch) | |
tree | 12d7235b28a266f26ec96403095bb1328f89eebe /engines/cruise | |
parent | ed796d164adb14566670b69ac496c4be08f731b2 (diff) | |
download | scummvm-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/cruise')
-rw-r--r-- | engines/cruise/function.cpp | 3 |
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; } |