summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-31 19:56:52 +0000
committerrubidium <rubidium@openttd.org>2008-08-31 19:56:52 +0000
commit9f91aacc07d9cbc5f6c68b6c5c2dc5b841d4eee6 (patch)
treec12e924c21fdf1c840d4657aa222be0f1c3189e9
parent7759bfd10953b4de1065a7311f6a0332c2ebd6db (diff)
downloadopenttd-9f91aacc07d9cbc5f6c68b6c5c2dc5b841d4eee6.tar.xz
(svn r14207) -Fix [FS#2262] (r14191): warning about non-virtual destructor in class with virtual functions.
-rw-r--r--src/fileio_func.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fileio_func.h b/src/fileio_func.h
index 476e1afff..c0e777a9d 100644
--- a/src/fileio_func.h
+++ b/src/fileio_func.h
@@ -68,6 +68,9 @@ extern char *_personal_dir; ///< custom directory for personal settings, saves,
class FileScanner
{
public:
+ /** Destruct the proper one... */
+ virtual ~FileScanner() {}
+
uint Scan(const char *extension, Subdirectory sd, bool tars = true);
/**