Revert fix 10 bed appearing it broke bed selection.

This commit is contained in:
Martin Šach 2024-11-27 13:46:18 +01:00 committed by Lukas Matena
parent 67748ba395
commit dc46c493a3

View File

@ -133,7 +133,7 @@ void MultipleBeds::inst_map_updated()
for (const auto& [obj_id, bed_idx] : m_inst_to_bed)
max_bed_idx = std::max(max_bed_idx, bed_idx);
if (max_bed_idx < m_number_of_beds) {
if (m_number_of_beds != max_bed_idx + 1) {
m_number_of_beds = max_bed_idx + 1;
m_active_bed = m_number_of_beds - 1;
request_next_bed(false);