mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 17:53:47 +00:00
Fix possible crash on mod enum
This commit is contained in:
parent
9229bb2c0a
commit
0b7334c7b7
1 changed files with 4 additions and 1 deletions
|
@ -1812,8 +1812,11 @@ void DSQ::loadModsCallback(const std::string &filename, void *param)
|
|||
XMLDocument d;
|
||||
if(!Mod::loadModXML(&d, name))
|
||||
{
|
||||
const char *err = d.GetErrorStr1();
|
||||
if(!err)
|
||||
err = "<unknown error>";
|
||||
std::ostringstream os;
|
||||
os << "Failed to load mod xml: " << filename << " -- Error: " << d.GetErrorStr1();
|
||||
os << "Failed to load mod xml: " << filename << " -- Error: " << err;
|
||||
dsq->debugLog(os.str());
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue