Erwan
- fixed memory leak in AEquip/ATeach - Test suite now trims strings correctly (allows to have space between comma-separated card names) - Added Paradise Mantle (for ATeach test) - removed a missing wallpaper from wallpapers list
This commit is contained in:
@@ -232,10 +232,10 @@ void TestSuiteState::parsePlayerState(int playerId, string s){
|
||||
unsigned int value;
|
||||
limiter = s.find(",");
|
||||
if (limiter != string::npos){
|
||||
value = Rules::getMTGId(s.substr(0,limiter));
|
||||
value = Rules::getMTGId(trim(s.substr(0,limiter)));
|
||||
s = s.substr(limiter+1);
|
||||
}else{
|
||||
value = Rules::getMTGId(s);
|
||||
value = Rules::getMTGId(trim(s));
|
||||
s = "";
|
||||
}
|
||||
if (value) playerData[playerId].zones[area].add(value);
|
||||
|
||||
Reference in New Issue
Block a user