Skip to content

Commit

Permalink
fix -Wnon-virtual-dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
MillhioreBT committed Apr 28, 2024
1 parent e165ce0 commit 9bc2bc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/game.h
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ class Game
void updateCreatureWalk(uint32_t creatureId);
void checkCreatureAttack(uint32_t creatureId);
void checkCreatures(size_t index);
void checkLight();

bool combatBlockHit(CombatDamage& damage, Creature* attacker, Creature* target, bool checkDefense, bool checkArmor,
bool field, bool ignoreResistances = false);
Expand Down Expand Up @@ -490,8 +489,8 @@ class Game
void loadGameStorageValues();
bool saveGameStorageValues() const;

virtual void setStorageValue(uint32_t key, std::optional<int64_t> value);
virtual std::optional<int64_t> getStorageValue(uint32_t key) const;
void setStorageValue(uint32_t key, std::optional<int64_t> value);
std::optional<int64_t> getStorageValue(uint32_t key) const;
decltype(auto) getStorageMap() const { return storageMap; }

private:
Expand Down

0 comments on commit 9bc2bc8

Please sign in to comment.