Skip to content

Commit 761e352

Browse files
committed
Merge remote-tracking branch 'origin/develop' into experimental
2 parents 8470334 + 2cd2a92 commit 761e352

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cmake_policy(SET CMP0074 NEW)
77

88
# set up versioning.
99
set(DF_VERSION "51.11")
10-
set(DFHACK_RELEASE "r1")
10+
set(DFHACK_RELEASE "r1.1")
1111
set(DFHACK_PRERELEASE TRUE)
1212

1313
set(DFHACK_VERSION "${DF_VERSION}-${DFHACK_RELEASE}")

data/art/design.png

-241 Bytes
Loading

docs/changelog.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ Template for new versions:
6767

6868
## Removed
6969

70+
# 51.11-r1.1
71+
72+
## Fixes
73+
- `preserve-rooms`: will no longer crash when a civzone is assigned to a unit that does not exist
74+
- `gui/design`: fix misaligned shape icons
75+
7076
# 51.11-r1
7177

7278
## Fixes
@@ -92,6 +98,7 @@ Template for new versions:
9298

9399
## Lua
94100
- ``dfhack.military.addToSquad``: expose Military API function
101+
- ``dfhack.buildings.getOwner``: make new Buildings API available to Lua
95102

96103
# 51.10-r1
97104

library/xml

Submodule xml updated from 8674852 to 53d0ced

plugins/preserve-rooms.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ static void process_rooms(color_ostream &out,
512512
continue;
513513
}
514514
auto owner = Buildings::getOwner(zone);
515+
if (!owner) {
516+
WARN(cycle, out).print("building %d has owner id %d but no such unit exists\n", zone->id, zone->assigned_unit_id);
517+
continue;
518+
}
515519
auto hf = df::historical_figure::find(owner->hist_figure_id);
516520
if (!hf)
517521
continue;

0 commit comments

Comments
 (0)