Skip to content

Commit

Permalink
Merge pull request CleverRaven#78461 from akrieger/relic_deez_
Browse files Browse the repository at this point in the history
Explicitly instantiate ~relic() for compile time win.
  • Loading branch information
Night-Pryanik authored Dec 10, 2024
2 parents c5c8fa6 + 2cf57ce commit 237ae0e
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 237ae0e

Please sign in to comment.