summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-27 09:48:57 +0100
committerMattes D <github@xoft.cz>2014-10-27 09:48:57 +0100
commita068ebf3e022f72ae703b762215abb5039cd35c8 (patch)
tree577f4cb29511353a2e99d494dd30635592e492f3 /src
parentRemoved too advanced C++11 features. (diff)
downloadcuberite-a068ebf3e022f72ae703b762215abb5039cd35c8.tar
cuberite-a068ebf3e022f72ae703b762215abb5039cd35c8.tar.gz
cuberite-a068ebf3e022f72ae703b762215abb5039cd35c8.tar.bz2
cuberite-a068ebf3e022f72ae703b762215abb5039cd35c8.tar.lz
cuberite-a068ebf3e022f72ae703b762215abb5039cd35c8.tar.xz
cuberite-a068ebf3e022f72ae703b762215abb5039cd35c8.tar.zst
cuberite-a068ebf3e022f72ae703b762215abb5039cd35c8.zip
Diffstat (limited to 'src')
-rw-r--r--src/Generating/IntGen.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Generating/IntGen.h b/src/Generating/IntGen.h
index 94a17abd9..d7ed9275a 100644
--- a/src/Generating/IntGen.h
+++ b/src/Generating/IntGen.h
@@ -53,6 +53,10 @@ template <int SizeX, int SizeZ = SizeX>
class cIntGen
{
public:
+ /** Force a virtual destructor in all descendants.
+ Descendants contain virtual functions and are referred to via pointer-to-base, so they need a virtual destructor. */
+ virtual ~cIntGen() {}
+
/** Holds the array of values generated by this class (descendant). */
typedef int Values[SizeX * SizeZ];