"Nailed" is probably a bit too harsh of a term. Think of all the people who completely ignore speed limit laws. They are willing to take the risk of getting a ticket because driving fast (and getting to where they want to go sooner) is worth more to them than the possibility of receiving a speeding ticket.
If you really want to keep an unloaded gun and ammo in your glove compartment, you shouldn't let the wildlife code stand in your way. First, the chances of ever actually getting caught are really, really low. If you are risking a felony convinction, then even that super low chance of getting busted is still too much risk to take. But, if the worst thing that can happen is you get a ticket and have to pay a small fine, you're not really taking a gamble. In fact, driving 10 miles an hour over the speed limit has a much higher risk of getting caught than an unloaded gun in your glove compartment.
Jeff, logistically, is the average city police officer even prepared to give out a wildlife code violation ticket? From the few traffic tickets I have received, I know that the police have pre-made forms that they fill out and check the boxes to indicate what violation has occurred. I don't know if most police officers even have a ticket form with wildlife violations on them.
Class B misdemeanor.
(520 ILCS 5/2.33) (from Ch. 61, par. 2.33)
Sec. 2.33. (n) It is unlawful for any person, except persons who possess a permit to hunt from a vehicle as provided in this Section and persons otherwise permitted by law, to have or carry any gun in or on any vehicle, conveyance or aircraft, unless such gun is unloaded and enclosed in a case, except that at field trials authorized by Section 2.34 of this Act, unloaded guns or guns loaded with blank cartridges only, may be carried on horseback while not contained in a case, or to have or carry any bow or arrow device in or on any vehicle unless such bow or arrow device is unstrung or enclosed in a case, or otherwise made inoperable.
***
(520 ILCS 5/3.5) (from Ch. 61, par. 3.5)
Sec. 3.5. Penalties; probation.
***
(c) Any person who violates any of the provisions of Sections 2.9, 2.11, 2.16, 2.18, 2.24, 2.25, 2.26, 2.29, 2.30, 2.31, 2.32,
2.33 (except subsections (g), (i), (o), (p), (y), and (cc)), 2.33‑1, 2.33a, 3.3, 3.4, 3.11 through 3.16, 3.19, 3.20, 3.21 (except subsections (b), (c), (d), (e), (f), (f.5), (g), (h), and (i)), 3.24, 3.25, and 3.26 (except subsection (f)), including administrative rules, shall be guilty of a Class B misdemeanor.