summaryrefslogtreecommitdiff
path: root/src
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
commitdc2ace2494ca544b940c4b0017d41543d1ebc672 (patch)
treec12e924c21fdf1c840d4657aa222be0f1c3189e9 /src
parentc930fb4c81e4f78fddbf666ea802a8849f4fa0aa (diff)
downloadopenttd-dc2ace2494ca544b940c4b0017d41543d1ebc672.tar.xz
(svn r14207) -Fix [FS#2262] (r14191): warning about non-virtual destructor in class with virtual functions.
Diffstat (limited to 'src')
-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);
/**