diff options
author | Mattes D <github@xoft.cz> | 2014-10-27 09:48:57 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-10-27 09:48:57 +0100 |
commit | a068ebf3e022f72ae703b762215abb5039cd35c8 (patch) | |
tree | 577f4cb29511353a2e99d494dd30635592e492f3 /src/Generating/IntGen.h | |
parent | Removed too advanced C++11 features. (diff) | |
download | cuberite-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/Generating/IntGen.h')
-rw-r--r-- | src/Generating/IntGen.h | 4 |
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]; |