mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 09:09:09 +00:00
(svn r25887) -Fix: Ignore NULL pointers in delete operator of PoolItem.
This commit is contained in:
@@ -161,6 +161,7 @@ struct Pool : PoolBase {
|
||||
*/
|
||||
inline void operator delete(void *p)
|
||||
{
|
||||
if (p == NULL) return;
|
||||
Titem *pn = (Titem *)p;
|
||||
assert(pn == Tpool->Get(pn->index));
|
||||
Tpool->FreeItem(pn->index);
|
||||
|
Reference in New Issue
Block a user