A mother's quick thinking helped prevent a potential tragedy Tuesday when a fire broke out in her North Raleigh apartment complex.