fixed typo
This commit is contained in:
@@ -50,7 +50,7 @@ WCardFilter * WCFilterFactory::Construct(string src)
|
|||||||
if (endp != string::npos)
|
if (endp != string::npos)
|
||||||
{
|
{
|
||||||
WCFilterGROUP * g = NEW WCFilterGROUP(Construct(src.substr(i + 1, endp - 1)));
|
WCFilterGROUP * g = NEW WCFilterGROUP(Construct(src.substr(i + 1, endp - 1)));
|
||||||
if ( endp < (srcLength - 1) )
|
if ( endp < (srcLength - 2) )
|
||||||
{
|
{
|
||||||
if (src[endp + 1] == '|')
|
if (src[endp + 1] == '|')
|
||||||
return NEW WCFilterOR(g, Construct(src.substr(endp + 2)));
|
return NEW WCFilterOR(g, Construct(src.substr(endp + 2)));
|
||||||
@@ -68,7 +68,7 @@ WCardFilter * WCFilterFactory::Construct(string src)
|
|||||||
if (endp != string::npos)
|
if (endp != string::npos)
|
||||||
{
|
{
|
||||||
WCFilterNOT * g = NEW WCFilterNOT(Construct(src.substr(i + 1, endp - 1)));
|
WCFilterNOT * g = NEW WCFilterNOT(Construct(src.substr(i + 1, endp - 1)));
|
||||||
if (endp < (srcLength - 1) )
|
if (endp < (srcLength - 2) )
|
||||||
{
|
{
|
||||||
if (src[endp + 1] == '|')
|
if (src[endp + 1] == '|')
|
||||||
return NEW WCFilterOR(g, Construct(src.substr(endp + 2)));
|
return NEW WCFilterOR(g, Construct(src.substr(endp + 2)));
|
||||||
@@ -329,7 +329,7 @@ string WCFilterToughness::getCode()
|
|||||||
}
|
}
|
||||||
//WCFilterRarity
|
//WCFilterRarity
|
||||||
float WCFilterRarity::filterFee()
|
float WCFilterRarity::filterFee()
|
||||||
|
{
|
||||||
switch (rarity)
|
switch (rarity)
|
||||||
{
|
{
|
||||||
case 'M':
|
case 'M':
|
||||||
|
|||||||
Reference in New Issue
Block a user