Huh. Bizarre. How'd you get the gun from your house to the range then? Don't know about 'Bama, but here in deep blue Illinois if you have an unloaded firearm w/o ammo you're fine transporting it without a CCL.
Here's Maryland:
Exceptions.- This section does not prohibit:
....
(3) the carrying of a handgun on the person or in a vehicle while the person is transporting the handgun to or from the place of legal purchase or sale, or to or from a bona fide repair shop, or between bona fide residences of the person, or between the bona fide residence and place of business of the person, if the business is operated and owned substantially by the person if each handgun is unloaded and carried in an enclosed case or an enclosed holster;
(4) the wearing, carrying, or transporting by a person of a handgun used in connection with an organized military activity, a target shoot, formal or informal target practice, sport shooting event, hunting, a Department of Natural Resources-sponsored firearms and hunter safety class, trapping, or a dog obedience training class or show, while the person is engaged in, on the way to, or returning from that activity if each handgun is unloaded and carried in an enclosed case or an enclosed holster;