changeset 15840:2223f3a6ef60 draft

(svn r20522) -Fix [FS#4041] (r20482): the wrong "delete" was called for Objects
author rubidium <rubidium@openttd.org>
date Tue, 17 Aug 2010 09:42:38 +0000
parents 3326de921f33
children a641e1314195
files src/object_base.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/object_base.h
+++ b/src/object_base.h
@@ -29,6 +29,8 @@
 
 	/** 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.