From 5e4dd0c0197f6273c61491a5b9a030c93f796a12 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 2 Nov 2024 15:55:58 +0100 Subject: add some tests --- backend/Player.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/Player.cpp') 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 { -- cgit v1.2.3