Jeck - quick fix to r1496.

This commit is contained in:
wagic.jeck
2009-12-13 15:03:56 +00:00
parent b766dd6e4a
commit 87d8922207
+8 -5
View File
@@ -67,11 +67,14 @@ 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(setlist.size()){ if(un < name.size()){
int unlocked = setlist[setname]; string setname = name.substr(un);
if(unlocked != -1) if(setlist.size()){
return Options::optionSet(unlocked); int unlocked = setlist[setname];
if(unlocked != -1)
return Options::optionSet(unlocked);
}
} }
//Failure. //Failure.