Fix memory leak in step 7
This commit is contained in:
@ -14,3 +14,6 @@ void Hero::draw(QGraphicsScene *scene) const {
|
||||
UNIT_WIDTH, UNIT_HEIGHT), Qt::NoPen, QBrush(HERO_COLOR));
|
||||
}
|
||||
|
||||
Unit *Hero::clone() const {
|
||||
return new Hero(*this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user