nearly made a mistake just as well in a situation similar. With few hours under my belt went to kansas city downtown airport, the runway layout is similar (19/1 , 03/21) . I was cleared to land runway 1, thought i had a visual (did) and was currently on a left base for the runway, turned final, and was told by approach to check my heading. Noticed that i was on final for runway 03 quickly, then saw the actual runway 1 and commenced to a new left base for that runway. Habit formed from that was to always check my DG/HSI, especially on final, not as much on departure, but, that is now going to change.
Hopefully the rest of us will also learn from this experience to help it from happening again. Flyer Josh- good analysis.