Don't cast pointers to int, this (potentially) breaks 64 bit systems

svn-id: r26806
This commit is contained in:
Max Horn 2007-05-12 13:39:53 +00:00
parent ed796d164a
commit a7ced58d9a

View File

@ -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;
}