Direct answer
Check whether the ticket is conditional on a named pitcher or is an action wager, then check when the requirement applies. A live bet placed after the replacement is announced may use different conditions from a pregame listed-pitcher bet.
What to check
Save both the ticket and the official starting pitcher record. The listed-pitcher condition matters only if it applies to that market.