Bob's right. Reconstruct the inning without the error & determine if a runner would have scored anyway. If there's doubt, it's resolved in favor of the pitcher.
Another "rule of thumb": Any B/R who reaches as the result of an error and later scores is unearned. With two out, if an error prolongs the inning, no further runs are earned.
|