in Line 158 it reads:
if(EXISTS(select 1 from oxobject2delivery, $sCountryTable where $sCountryTable.oxid=oxobject2delivery.oxobjectid and oxobject2delivery.oxdeliveryid=$sTable.OXID and oxobject2delivery.oxtype='oxdelset' LIMIT 1)

Shouldn't it be:
if(EXISTS(select 1 from oxobject2delivery, $sCountryTable where $sCountryTable.oxid=oxobject2delivery.oxobjectid and oxobject2delivery.oxdeliveryid=$sTable.OXID and oxobject2delivery.oxtype='oxcountry' LIMIT 1),

Steps To Reproduce

- create a EE Shop with two Subshops
- delivery and deliverysets to germany and austria
- everything ist configured correct
- go shopping in the shop frontend
- ship to austria
- shop says there is no shipping configuration for this country