Guns and booze are a notoriously dangerous combination. Yet a Texas court of appeal has ruled that homeowner can’t be held liable for an accidental shooting just because a .45 caliber pistol was left on a table where his guests were drinking alcohol.

After she was accidentally shot in the ankle during a backyard barbecue, Ruth Hernandez sued the owner of the house where the event was being hosted. But Houston’s Fourteenth Court of Appeals concluded in a June 27 decision that the homeowner could not be sued for premises liability.