- Removed "isClone" flag. This flag was error prone. The "core" classes now have decent copy constructors, and ideally long term we should create copy constructors for the abilities that have additional pointers in them.
-- The test suite passes but this is a big change. I might have introduced some memory leaks or bugs. I might have fixed some bugs, too
This commit is contained in:
@@ -53,9 +53,7 @@ bool MTGGamePhase::CheckUserInput(JButton key)
|
||||
|
||||
MTGGamePhase * MTGGamePhase::clone() const
|
||||
{
|
||||
MTGGamePhase * a = NEW MTGGamePhase(*this);
|
||||
a->isClone = 1;
|
||||
return a;
|
||||
return NEW MTGGamePhase(*this);
|
||||
}
|
||||
|
||||
ostream& MTGGamePhase::toString(ostream& out) const
|
||||
|
||||
Reference in New Issue
Block a user