1
0
Fork 0
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:
fgenesis 2012-07-23 05:06:01 +02:00
parent 9c76fa7ed4
commit 9e4fe3809e
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

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