Jeck - quick fix to r1496.

This commit is contained in:
wagic.jeck
2009-12-13 15:03:56 +00:00
parent b766dd6e4a
commit 87d8922207

View File

@@ -67,11 +67,14 @@ int Options::getID(string name){
}
//Is it an unlocked set?
string setname = name.substr(strlen("unlocked_"));
if(setlist.size()){
int unlocked = setlist[setname];
if(unlocked != -1)
return Options::optionSet(unlocked);
size_t un = strlen("unlocked_");
if(un < name.size()){
string setname = name.substr(un);
if(setlist.size()){
int unlocked = setlist[setname];
if(unlocked != -1)
return Options::optionSet(unlocked);
}
}
//Failure.