1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

Fix GetPcCell bug

This commit is contained in:
scrawl 2014-01-22 14:45:36 +01:00
parent ea21d8fec3
commit 2e6e0fd0a0

View File

@ -115,6 +115,7 @@ namespace MWScript
current = region->mName;
}
Misc::StringUtils::toLower(current);
bool match = current.length()>=name.length() &&
current.substr (0, name.length())==name;