fixed a psp comp error.
This commit is contained in:
@@ -718,12 +718,15 @@ 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))
|
||||||
{
|
{
|
||||||
SAFE_DELETE(paid);
|
if((!cost->hasX() && !cost->hasAnotherCost()) || k == gotPayments.size()-1)
|
||||||
for(size_t clicking = 0; clicking < clicks.size(); ++clicking)
|
{
|
||||||
clickstream.push(clicks[clicking]);
|
SAFE_DELETE(paid);
|
||||||
return true;
|
for(size_t clicking = 0; clicking < clicks.size(); ++clicking)
|
||||||
|
clickstream.push(clicks[clicking]);
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user