1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Replace some raw pointers with unique's or optional

This commit is contained in:
Ivan Savenko
2025-04-27 19:58:21 +03:00
parent 4bafab9ad4
commit c0fb1d1b3b
17 changed files with 47 additions and 86 deletions

View File

@@ -17,14 +17,7 @@
VCMI_LIB_NAMESPACE_BEGIN
CFaction::~CFaction()
{
if (town)
{
delete town;
town = nullptr;
}
}
CFaction::~CFaction() = default;
int32_t CFaction::getIndex() const
{