* Remove warnings.
This commit is contained in:
jean.chalard
2008-11-16 05:20:08 +00:00
parent e86e73af2f
commit 3c603f1ec4
2 changed files with 3 additions and 3 deletions

View File

@@ -2794,7 +2794,7 @@ class AAbomination :public MTGAbility{
if( newPhase == MTG_PHASE_COMBATDAMAGE){
nbOpponents = 0;
MTGCardInstance * opponent = source->getNextOpponent();
while (opponent && opponent->hasColor(MTG_COLOR_GREEN) || opponent->hasColor(MTG_COLOR_WHITE)){
while ((opponent && opponent->hasColor(MTG_COLOR_GREEN)) || opponent->hasColor(MTG_COLOR_WHITE)){
opponents[nbOpponents] = opponent;
nbOpponents ++;
opponent = source->getNextOpponent(opponent);

View File

@@ -38,7 +38,7 @@ int AbilityFactory::putInPlayFromZone(MTGCardInstance * card, MTGGameZone * zone
Trigger * AbilityFactory::parseTrigger(string magicText){
int found = magicText.find("@");
size_t found = magicText.find("@");
if (found == string::npos) return NULL;
//Next Time...
@@ -1707,7 +1707,7 @@ int ListMaintainerAbility::destroy(){
MTGAbilityBasicFeatures::MTGAbilityBasicFeatures(){
game = GameObserver::GetInstance();
}
MTGAbilityBasicFeatures::MTGAbilityBasicFeatures(MTGCardInstance * _source, Damageable * _target):source(_source),target(_target){
MTGAbilityBasicFeatures::MTGAbilityBasicFeatures(MTGCardInstance * _source, Damageable * _target):target(_target),source(_source){
if (!target) target = source;
game = GameObserver::GetInstance();
}