Skip to content
Snippets Groups Projects
Commit 0c7bef01 authored by Frederik's avatar Frederik
Browse files

Add effect and number textures to destructor

parent b525cefa
Branches
No related tags found
2 merge requests!29Merge main into box2d to implement physics,!19Let units show their hp
......@@ -515,6 +515,13 @@ Spritesheet::~Spritesheet()
}
}
}
for (auto& [texture, i] : m_effectTextures)
{
SDL_DestroyTexture(texture);
}
SDL_DestroyTexture(m_numberTextures);
}
} // namespace advanced_wars
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment