summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-17 09:42:38 +0000
committerrubidium <rubidium@openttd.org>2010-08-17 09:42:38 +0000
commitedec7723cd977d749391775561ff3011e832f492 (patch)
tree1fb3367a84f2c0b99eefbe996741be7d3908b2b6
parent69feef489934172cdd0606cbee54c394fdeb5800 (diff)
downloadopenttd-edec7723cd977d749391775561ff3011e832f492.tar.xz
(svn r20522) -Fix [FS#4041] (r20482): the wrong "delete" was called for Objects
-rw-r--r--src/object_base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/object_base.h b/src/object_base.h
index 2aaf8aa0c..a4e7eb0d7 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.