Skip to content

Commit

Permalink
now with fewer compile errors!
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Jun 30, 2020
1 parent 219c6b6 commit ae7d933
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion events/add_hf_hf_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "df/history_event_add_hf_hf_linkst.h"

static std::string spouse_name(historical_figure *hf)
static std::string spouse_name(df::historical_figure *hf)
{
if (hf && hf->sex == pronoun_type::she)
return "wife";
Expand Down
2 changes: 1 addition & 1 deletion events/remove_hf_entity_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void do_event(std::ostream & s, const event_context & context, df::history_event
pos = binsearch_in_vector(ent->positions.own, event->position_id);
event_link(s, context, hf);
s << " relinquished ";
if (auto pronoun = hf ? ENUM_ATTR(pronoun_type, posessive, hf->sex) : null)
if (auto pronoun = hf ? ENUM_ATTR(pronoun_type, posessive, hf->sex) : nullptr)
s << pronoun;
else
s << "their";
Expand Down
1 change: 1 addition & 0 deletions helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <functional>

#include "df/profession.h"
#include "df/pronoun_type.h"
#include "df/value_type.h"

namespace DFHack
Expand Down

0 comments on commit ae7d933

Please sign in to comment.