Skip to content

Commit

Permalink
Add a check to the histfig fix and tweak NEWS.
Browse files Browse the repository at this point in the history
  • Loading branch information
expwnent committed Mar 10, 2016
1 parent fd132d3 commit f8ff447
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ New Features

Fixes
-----
- Fixed a crash bug caused by the historical figures DFHack uses to store persistent data.
- More plugins should recognize non-dwarf citizens
- Fixed a possible crash from cloning jobs
- `confirm` note-delete: No longer interferes with name entry
Expand All @@ -89,8 +90,6 @@ Fixes

- `showmood`: Fixed name display on OS X/Linux

- Fixed a crash bug caused by the historical figures DFHack uses to store persistent data.

Misc Improvements
-----------------
- `autolabor`, `autohauler`, `manipulator`: Added support for new jobs/labors/skills
Expand Down
2 changes: 1 addition & 1 deletion library/modules/EventManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ void DFHack::EventManager::onStateChange(color_ostream& out, state_change_event
}
for ( size_t a = 0; a < df::global::world->history.figures.size(); a++ ) {
df::historical_figure* unit = df::global::world->history.figures[a];
if ( unit->name.language < 0 )
if ( unit->id < 0 && unit->name.language < 0 )
unit->name.language = 0;
}

Expand Down

0 comments on commit f8ff447

Please sign in to comment.