mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 11:23:21 +00:00
(svn r22136) -Fix (r22112): Silence compiler warning about non-virtual destructor
This commit is contained in:
parent
19b7249ade
commit
ac0700c564
@ -16,7 +16,7 @@
|
||||
* Destructor removes this object from the pool vector and
|
||||
* deletes the vector itself if this was the last item removed.
|
||||
*/
|
||||
PoolBase::~PoolBase()
|
||||
/* virtual */ PoolBase::~PoolBase()
|
||||
{
|
||||
PoolVector *pools = PoolBase::GetPools();
|
||||
pools->Erase(pools->Find(this));
|
||||
|
@ -53,7 +53,7 @@ struct PoolBase {
|
||||
*PoolBase::GetPools()->Append() = this;
|
||||
}
|
||||
|
||||
~PoolBase();
|
||||
virtual ~PoolBase();
|
||||
|
||||
/**
|
||||
* Virtual method that deletes all items in the pool.
|
||||
|
Loading…
Reference in New Issue
Block a user