forked from mirror/OpenTTD
(svn r25402) -Fix-ish: Prevent copying of BasePool and WindowDesc, since they register in static vectors.
This commit is contained in:
@@ -59,6 +59,13 @@ struct PoolBase {
|
||||
* Virtual method that deletes all items in the pool.
|
||||
*/
|
||||
virtual void CleanPool() = 0;
|
||||
|
||||
private:
|
||||
/**
|
||||
* Dummy private copy constructor to prevent compilers from
|
||||
* copying the structure, which fails due to GetPools().
|
||||
*/
|
||||
PoolBase(const PoolBase &other);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user