diff --git a/plugins/remotefortressreader/dwarf_control.cpp b/plugins/remotefortressreader/dwarf_control.cpp index fda7483c1..3a5933464 100644 --- a/plugins/remotefortressreader/dwarf_control.cpp +++ b/plugins/remotefortressreader/dwarf_control.cpp @@ -72,9 +72,10 @@ void GetBuildingSize( rad_x_high = world->building_width / 2; else rad_x_high = (world->building_width / 2) - 1; - bool heightOdd = world->building_width % 2; + + bool heightOdd = world->building_height % 2; rad_y_low = world->building_height / 2; - if (widthOdd) + if (heightOdd) rad_y_high = world->building_height / 2; else rad_y_high = (world->building_height / 2) - 1;