mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-01-24 01:06:41 +00:00
Fix crash added with last commit, thx KS-10 for pointing
This commit is contained in:
parent
9c76fa7ed4
commit
9e4fe3809e
2 changed files with 3 additions and 1 deletions
|
@ -8952,7 +8952,7 @@ void ScriptInterface::shutdown()
|
|||
|
||||
Script *ScriptInterface::openScript(const std::string &file, bool ignoremissing /* = false */)
|
||||
{
|
||||
std::string realFile = localisePath(file, dsq->mod.isActive() ? dsq->mod.getPath() : "");
|
||||
std::string realFile = localisePathInternalModpath(file);
|
||||
realFile = core->adjustFilenameCase(realFile);
|
||||
bool loadedScript = false;
|
||||
|
||||
|
|
|
@ -62,6 +62,8 @@ std::string localisePath(const std::string &path, const std::string& modpath /*
|
|||
{
|
||||
if (s_locale.empty() || s_locale == "-")
|
||||
return path;
|
||||
if(path.length() < modpath.length())
|
||||
return path;
|
||||
|
||||
const std::string fname = path.substr(modpath.length());
|
||||
|
||||
|
|
Loading…
Reference in a new issue