Merge pull request #739 from zethfoxster/master

unused variables.
This commit is contained in:
zethfoxster
2016-07-09 13:13:36 -04:00
committed by GitHub

View File

@@ -2774,7 +2774,6 @@ WEvent * MTGDredgeRule::replace(WEvent * event)
Player * p = game->players[i]; Player * p = game->players[i];
if (e->player == p) if (e->player == p)
{ {
int Dredgers = 0;
vector<MTGAbility*>menusOfferedWithDredge; vector<MTGAbility*>menusOfferedWithDredge;
for(int draw = 0;draw < e->nb_cards;draw++) for(int draw = 0;draw < e->nb_cards;draw++)
{ {
@@ -2804,7 +2803,6 @@ WEvent * MTGDredgeRule::replace(WEvent * event)
} }
} }
int Choices = int(selection.size());
//there is a memleak here that i have no idea what causes it. got it reduced to just 4 bytes but its still bothering me. //there is a memleak here that i have no idea what causes it. got it reduced to just 4 bytes but its still bothering me.
if (int(menusOfferedWithDredge.size()) < toDredge) if (int(menusOfferedWithDredge.size()) < toDredge)
{ {