diff options
author | rubidium <rubidium@openttd.org> | 2013-11-24 09:52:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-24 09:52:35 +0000 |
commit | 6fb28d87196305d0d016499215ba9d6503e1c6cf (patch) | |
tree | adbaf89324ab0198113cd1f190beaa500e3d0e10 | |
parent | a8e8f606d89055397a37dbe5c7a1b3d46d08cf8a (diff) | |
download | openttd-6fb28d87196305d0d016499215ba9d6503e1c6cf.tar.xz |
(svn r26081) -Fix [FS#5815]: memset with virtual functions doesn't quite work. Upon further review CompanyProperties doesn't need to be virtual in the current code base
-rw-r--r-- | src/company_base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_base.h b/src/company_base.h index f9dce59e7..6385d6049 100644 --- a/src/company_base.h +++ b/src/company_base.h @@ -100,7 +100,7 @@ struct CompanyProperties { CompanyProperties() : name(NULL), president_name(NULL) {} - virtual ~CompanyProperties() + ~CompanyProperties() { free(this->name); free(this->president_name); |