fs: Assert that game_config::path is not empty in get_wml_location()
Let's see if this breaks some absurd border case I couldn't think of. Quick testing revealed that early initialization, campaignd, and wesnothd at least did not fail the assertion check.
This commit is contained in:
parent
314425ab0e
commit
9f458d1bb2
1 changed files with 2 additions and 0 deletions
|
@ -1113,6 +1113,8 @@ std::string get_wml_location(const std::string &filename, const std::string &cur
|
|||
{
|
||||
DBG_FS << "Looking for '" << filename << "'.\n";
|
||||
|
||||
assert(game_config::path.empty() == false);
|
||||
|
||||
std::string result;
|
||||
|
||||
if (filename.empty()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue