Fix a compile error on the psp.

This commit is contained in:
wrenczes@gmail.com
2010-10-07 08:10:08 +00:00
parent df2b145a42
commit 6109fe1912
+4 -2
View File
@@ -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;