fixed a psp comp error.
This commit is contained in:
@@ -718,7 +718,9 @@ bool AIPlayerBaka::payTheManaCost(ManaCost * cost, MTGCardInstance * target,vect
|
|||||||
}
|
}
|
||||||
if(k == gotPayments.size()-1)//only add it once, and at the end.
|
if(k == gotPayments.size()-1)//only add it once, and at the end.
|
||||||
paid->add(this->getManaPool());//incase some of our payments were mana already in the pool/.
|
paid->add(this->getManaPool());//incase some of our payments were mana already in the pool/.
|
||||||
if(paid->canAfford(cost) && (!cost->hasX() && !cost->hasAnotherCost()) || k == gotPayments.size()-1)
|
if(paid->canAfford(cost))
|
||||||
|
{
|
||||||
|
if((!cost->hasX() && !cost->hasAnotherCost()) || k == gotPayments.size()-1)
|
||||||
{
|
{
|
||||||
SAFE_DELETE(paid);
|
SAFE_DELETE(paid);
|
||||||
for(size_t clicking = 0; clicking < clicks.size(); ++clicking)
|
for(size_t clicking = 0; clicking < clicks.size(); ++clicking)
|
||||||
@@ -726,6 +728,7 @@ bool AIPlayerBaka::payTheManaCost(ManaCost * cost, MTGCardInstance * target,vect
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//clean up temporary "clicks" structure if its content wasn't used above
|
//clean up temporary "clicks" structure if its content wasn't used above
|
||||||
for(size_t i = 0; i< clicks.size(); ++i)
|
for(size_t i = 0; i< clicks.size(); ++i)
|
||||||
SAFE_DELETE(clicks[i]);
|
SAFE_DELETE(clicks[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user