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:
@@ -17,14 +17,7 @@
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
CFaction::~CFaction()
|
||||
{
|
||||
if (town)
|
||||
{
|
||||
delete town;
|
||||
town = nullptr;
|
||||
}
|
||||
}
|
||||
CFaction::~CFaction() = default;
|
||||
|
||||
int32_t CFaction::getIndex() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user