Skip to content

Commit 9ef3595

Browse files
committed
fix: properly update fire risk for empty house
1 parent abf2f8d commit 9ef3595

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/building/building_house.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,11 @@ void building_house::bind_dynamic(io_buffer *iob, size_t version) {
211211
}
212212

213213
int building_house::get_fire_risk(int value) const {
214-
return (house_level() == BUILDING_HOUSE_VACANT_LOT && is_vacant_lot()) ? value : 0;
214+
if (house_level() == BUILDING_HOUSE_VACANT_LOT && is_vacant_lot()) {
215+
return 0;
216+
}
217+
218+
return value;
215219
}
216220

217221
void building_house::highlight_waypoints() {

0 commit comments

Comments
 (0)