aboutsummaryrefslogtreecommitdiff
path: root/backend/Player.cpp
diff options
context:
space:
mode:
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 {