Skip to content

Commit

Permalink
Explicitly instantiate ~relic() for compile time win.
Browse files Browse the repository at this point in the history
  • Loading branch information
akrieger committed Dec 10, 2024
1 parent cf7ef9b commit 2cf57ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/relic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ void relic_procgen_data::load_relic_procgen_data( const JsonObject &jo, const st
relic_procgen_data_factory.load( jo, src );
}

relic::~relic() = default;

void relic::add_active_effect( const fake_spell &sp )
{
active_effects.emplace_back( sp );
Expand Down
2 changes: 2 additions & 0 deletions src/relic.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ class relic
// passive enchantments to add by id in finalize once we can guarantee that they have loaded
std::vector<enchantment_id> passive_enchant_ids; // NOLINT(cata-serialize)
public:
~relic();

std::string name() const;
// returns number of charges that should be consumed
int activate( Creature &caster, const tripoint &target );
Expand Down

0 comments on commit 2cf57ce

Please sign in to comment.