mirror of
https://github.com/minetest/minetestmapper.git
synced 2025-06-28 06:40:16 +02:00
Rewrite config file parser
I noticed it didn't work correctly in some cases...
This commit is contained in:
@ -10,7 +10,7 @@ inline std::string read_setting_default(const std::string &name, std::istream &i
|
||||
{
|
||||
try {
|
||||
return read_setting(name, is);
|
||||
} catch(std::runtime_error &e) {
|
||||
} catch(const std::runtime_error &e) {
|
||||
return def;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user