1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-04 13:27:14 +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
commit 9e4fe3809e
2 changed files with 3 additions and 1 deletions

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