Jeck - quick fix to r1496.
This commit is contained in:
@@ -67,12 +67,15 @@ int Options::getID(string name){
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Is it an unlocked set?
|
//Is it an unlocked set?
|
||||||
string setname = name.substr(strlen("unlocked_"));
|
size_t un = strlen("unlocked_");
|
||||||
|
if(un < name.size()){
|
||||||
|
string setname = name.substr(un);
|
||||||
if(setlist.size()){
|
if(setlist.size()){
|
||||||
int unlocked = setlist[setname];
|
int unlocked = setlist[setname];
|
||||||
if(unlocked != -1)
|
if(unlocked != -1)
|
||||||
return Options::optionSet(unlocked);
|
return Options::optionSet(unlocked);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Failure.
|
//Failure.
|
||||||
return INVALID_OPTION;
|
return INVALID_OPTION;
|
||||||
|
|||||||
Reference in New Issue
Block a user