aboutsummaryrefslogtreecommitdiff
path: root/backend/Player.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-02 15:55:58 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-02 15:55:58 +0100
commit5e4dd0c0197f6273c61491a5b9a030c93f796a12 (patch)
tree390fc6d980cc49927523befb43d189c608452276 /backend/Player.cpp
parent369e3d71aa79783d95166739cfa93a480defe6ea (diff)
add some tests
Diffstat (limited to 'backend/Player.cpp')
-rw-r--r--backend/Player.cpp4
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 {