diff --git a/src/engine/objects/Contract.java b/src/engine/objects/Contract.java index f625fec8..5defef35 100644 --- a/src/engine/objects/Contract.java +++ b/src/engine/objects/Contract.java @@ -85,7 +85,7 @@ public class Contract extends AbstractGameObject { this.vendorDialog = VendorDialog.getVendorDialog(rs.getInt("dialogID")); this.iconID = rs.getInt("iconID"); this.vendorID = rs.getInt("vendorID"); - this.allowedBuildings = mbEnums.fromLong(rs.getLong("allowedBuildingTypeID"), mbEnums.BuildingGroup.class); + this.allowedBuildings = mbEnums.fromString(rs.getString("slotInBuildings"), mbEnums.BuildingGroup.class); this.equipmentSet = rs.getInt("equipSetID"); this.inventorySet = rs.getInt("inventorySet");