Use radio station database ID for house save

This commit is contained in:
Vortrex
2022-12-18 12:17:45 -06:00
parent 7ed0cc0e26
commit 35f4143d9b

View File

@@ -936,7 +936,7 @@ function saveHouseToDatabase(houseId) {
["house_has_interior", boolToInt(tempHouseData.hasInterior)],
["house_interior_lights", boolToInt(tempHouseData.interiorLights)],
["house_custom_interior", boolToInt(tempHouseData.customInterior)],
["house_radio_station", (getRadioStationData(tempHouseData.streamingRadioStationIndex) != false) ? getRadioStationData(tempHouseData.streamingRadioStationIndex) : -1],
["house_radio_station", (getRadioStationData(tempHouseData.streamingRadioStationIndex) != false) ? getRadioStationData(tempHouseData.streamingRadioStationIndex).databaseId : -1],
];
let dbQuery = null;