summaryrefslogtreecommitdiff
path: root/src/subsidy_base.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-08-08 22:42:52 +0000
committersmatz <smatz@openttd.org>2009-08-08 22:42:52 +0000
commite2c404958ded1e62bb499f0767ef6f0f161151df (patch)
treef95e4642db4d0f107b7357693bf6bc1209e3d69b /src/subsidy_base.h
parent153cfa8c70378c0013694d65ce0c39fcb7587fb8 (diff)
downloadopenttd-e2c404958ded1e62bb499f0767ef6f0f161151df.tar.xz
(svn r17127) -Fix (r17124): destructor has to be defined else operator delete might be called with NULL parameter
Diffstat (limited to 'src/subsidy_base.h')
-rw-r--r--src/subsidy_base.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/subsidy_base.h b/src/subsidy_base.h
index 015c773cc..a4eb6ccd6 100644
--- a/src/subsidy_base.h
+++ b/src/subsidy_base.h
@@ -29,6 +29,11 @@ struct Subsidy : SubsidyPool::PoolItem<&_subsidy_pool> {
FORCEINLINE Subsidy() { }
/**
+ * (Empty) destructor has to be defined else operator delete might be called with NULL parameter
+ */
+ FORCEINLINE ~Subsidy() { }
+
+ /**
* Tests whether this subsidy has been awarded to someone
* @return is this subsidy awarded?
*/