mirror of https://github.com/OpenTTD/OpenTTD
parent
887dce4655
commit
49d2a07f66
|
@ -27,6 +27,8 @@ INSTANTIATE_POOL_METHODS(Depot)
|
||||||
*/
|
*/
|
||||||
Depot::~Depot()
|
Depot::~Depot()
|
||||||
{
|
{
|
||||||
|
free(this->name);
|
||||||
|
|
||||||
if (CleaningPool()) return;
|
if (CleaningPool()) return;
|
||||||
|
|
||||||
if (!IsDepotTile(this->xy) || GetDepotIndex(this->xy) != this->index) {
|
if (!IsDepotTile(this->xy) || GetDepotIndex(this->xy) != this->index) {
|
||||||
|
|
Loading…
Reference in New Issue