Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GameBuildings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void MergeBuildingsToSegment(std::vector<Stonesense_Building>* buildings, WorldS
z2 = well_building->bucket_z;
}

for (uint32_t zz = copiedbuilding->z; zz >= z2; zz--) {
for (uint32_t zz = copiedbuilding->z + 1; zz-- > z2;) { // Avoid underflowing
if (copiedbuilding->type == df::enums::building_type::Civzone ||
copiedbuilding->type == df::enums::building_type::Stockpile ||
copiedbuilding->type == df::enums::building_type::FarmPlot) {
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Template for new versions:
## New Features

## Fixes
- `stonesense`: fixed hang when buildings are at the bottom of the world

## Misc Improvements

Expand Down