Commits

Anonymous committed 19a5d22

Fixes issue #1 64bit compiling failure.

Comments (0)

Files changed (1)

 		kfread(&params, 1, sizeof(operator_params), file);
 
 		// find new pointers for each gearstack used
-		params.gearstack1=MapToGearStack((int)params.gearstack1);
-		params.gearstack2=MapToGearStack((int)params.gearstack2);
+		params.gearstack1=MapToGearStack((int)((uintptr_t)params.gearstack1 & 0xffffffff));
+		params.gearstack2=MapToGearStack((int)((uintptr_t)params.gearstack2 & 0xffffffff));
 
 		return true;
 	};