diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-02 15:55:58 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-02 15:55:58 +0100 |
commit | 5e4dd0c0197f6273c61491a5b9a030c93f796a12 (patch) | |
tree | 390fc6d980cc49927523befb43d189c608452276 /backend/Player.cpp | |
parent | 369e3d71aa79783d95166739cfa93a480defe6ea (diff) |
add some tests
Diffstat (limited to 'backend/Player.cpp')
-rw-r--r-- | backend/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/Player.cpp b/backend/Player.cpp index 5e3e030..8a44a3a 100644 --- a/backend/Player.cpp +++ b/backend/Player.cpp @@ -7,8 +7,8 @@ Player::Player(Dungeon & dungeon) : dungeon(dungeon) { } Player::~Player() { - safe_free(this->weapon); - safe_free(this->armor); + safe_free(&this->weapon); + safe_free(&this->armor); } float Player::get_attack() const { |