From edec7723cd977d749391775561ff3011e832f492 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 17 Aug 2010 09:42:38 +0000 Subject: [PATCH] (svn r20522) -Fix [FS#4041] (r20482): the wrong "delete" was called for Objects --- src/object_base.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/object_base.h b/src/object_base.h index 2aaf8aa0c2..a4e7eb0d76 100644 --- a/src/object_base.h +++ b/src/object_base.h @@ -29,6 +29,8 @@ struct Object : ObjectPool::PoolItem<&_object_pool> { /** Make sure the object isn't zeroed. */ Object() {} + /** Make sure the right destructor is called as well! */ + ~Object() {} /** * Get the object associated with a tile.