Fix 32-bit crapness in TankLayerScan.