Fix a compile error on the psp.
This commit is contained in:
@@ -496,8 +496,10 @@ MTGCard * MTGAllCards::getCardByName(string name){
|
|||||||
size_t found = name.find(" (");
|
size_t found = name.find(" (");
|
||||||
if (found != string::npos){
|
if (found != string::npos){
|
||||||
size_t end = name.find(")");
|
size_t end = name.find(")");
|
||||||
string setName = trim(name.substr(found+2,end-found-2));
|
string setName = name.substr(found+2,end-found-2);
|
||||||
name = trim(name.substr(0,found));
|
trim(setName);
|
||||||
|
name = name.substr(0,found);
|
||||||
|
trim(name);
|
||||||
setId = setlist[setName];
|
setId = setlist[setName];
|
||||||
}
|
}
|
||||||
map<int,MTGCard *>::iterator it;
|
map<int,MTGCard *>::iterator it;
|
||||||
|
|||||||
Reference in New Issue
Block a user