- Minor tweaks in the hope to fix some Valgrind error logs
This commit is contained in:
wagic.the.homebrew
2008-12-02 14:00:28 +00:00
parent b9a9ab6bfa
commit acceb55f92
3 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -7,7 +7,9 @@ CardDescriptor::CardDescriptor(): MTGCardInstance(){
}
int CardDescriptor::init(){
return MTGCardInstance::init();
int result = MTGCardInstance::init();
initAttackersDefensers();
return result;
}
MTGCardInstance * CardDescriptor::match_or(MTGCardInstance * card){
+1
View File
@@ -185,6 +185,7 @@ int ManaCost::add(int color, int value){
}
int ManaCost::add(ManaCost * _cost){
if(!_cost) return 0;
for (int i=0; i< MTG_NB_COLORS; i++){
cost[i]+= _cost->getCost(i);
}