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:
Ignacio R. Morelle 2014-05-16 01:48:49 -04:00
parent 314425ab0e
commit 9f458d1bb2

View file

@ -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()) {