summaryrefslogtreecommitdiff
path: root/src/base_media_base.h
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-22 20:18:59 +0000
committeryexo <yexo@openttd.org>2010-02-22 20:18:59 +0000
commit3b9da089e540503101efbf0115e8369c33f47fd6 (patch)
tree01b893044425aef68641497f2d9a1f804375d635 /src/base_media_base.h
parent181035181380eb460ad9a818417754181d65b2f7 (diff)
downloadopenttd-3b9da089e540503101efbf0115e8369c33f47fd6.tar.xz
(svn r19212) -Fix: base graphics set with an empty filename in the obg file caused segfaults
Diffstat (limited to 'src/base_media_base.h')
-rw-r--r--src/base_media_base.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base_media_base.h b/src/base_media_base.h
index 5ff85f268..4b43c24fd 100644
--- a/src/base_media_base.h
+++ b/src/base_media_base.h
@@ -108,9 +108,10 @@ struct BaseSet {
* Read the set information from a loaded ini.
* @param ini the ini to read from
* @param path the path to this ini file (for filenames)
+ * @param allow_empty_filename empty filenames are valid
* @return true if loading was successful.
*/
- bool FillSetDetails(IniFile *ini, const char *path);
+ bool FillSetDetails(IniFile *ini, const char *path, bool allow_empty_filename = true);
/**
* Get the description for the given ISO code.