Wrong variable used in null-check (CID #1108197)

This commit is contained in:
Philippe Saint-Pierre
2014-02-27 21:40:15 -05:00
parent 847e14f002
commit 3d5ede23c2
@@ -272,7 +272,7 @@ TabletProtocolHandler::_ReadReport(void *buffer)
xTilt = fXTilt->ScaledFloatData();
float yTilt = 0.0f;
if (fXTilt != NULL && fYTilt->Extract() == B_OK && fYTilt->Valid())
if (fYTilt != NULL && fYTilt->Extract() == B_OK && fYTilt->Valid())
yTilt = fYTilt->ScaledFloatData();
bool inRange = true;