Stop storing players as bare pointers - use unique_ptr instead

Should fix some potential memory leaks that were caught by static analysis
This commit is contained in:
2023-01-12 20:19:25 -05:00
parent 1a82f8ff8b
commit 8872f1aa25
12 changed files with 57 additions and 63 deletions

View File

@@ -16,9 +16,7 @@ using namespace std;
TEST_CASE("Loading player character from file") {
ifstream fin;
fin.exceptions(ios::badbit);
cParty party;
cPlayer pc(party);
pc.leave_party();
cPlayer pc(no_party);
// Fill in some junk data
pc.cur_sp = 27;
pc.max_sp = 38;