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

@@ -166,6 +166,7 @@ static bool pick_race_select_led(cDialog& me, std::string item_hit, bool, const
case 1: race = eRace::NEPHIL; break;
case 2: race = eRace::SLITH; break;
case 3: race = eRace::VAHNATAI; break;
default: return false;
}
if(store_trait_mode == 0)
pc->race = race;