Fix memory leak in step 7

This commit is contained in:
2024-09-11 16:48:46 +02:00
parent dbfbb27044
commit c9be0f2d2f
9 changed files with 40 additions and 5 deletions

View File

@ -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);
}