The liar, knowing the truth-teller will point to the good door, points to the bad door.
The truth-teller, knowing the liar would point to the bad door, points to the bad door.
Either way, you take the one your guard doesn't point to.
The liar, knowing the truth-teller will point to the good door, points to the bad door.
The truth-teller, knowing the liar would point to the bad door, points to the bad door.
Either way, you take the one your guard doesn't point to.