diff options
author | smatz <smatz@openttd.org> | 2009-08-08 22:42:52 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-08-08 22:42:52 +0000 |
commit | e2c404958ded1e62bb499f0767ef6f0f161151df (patch) | |
tree | f95e4642db4d0f107b7357693bf6bc1209e3d69b | |
parent | 153cfa8c70378c0013694d65ce0c39fcb7587fb8 (diff) | |
download | openttd-e2c404958ded1e62bb499f0767ef6f0f161151df.tar.xz |
(svn r17127) -Fix (r17124): destructor has to be defined else operator delete might be called with NULL parameter
-rw-r--r-- | src/subsidy_base.h | 5 |
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? */ |