Skip to content
Snippets Groups Projects
Unverified Commit e3b8d307 authored by Leon Niklas Lux's avatar Leon Niklas Lux Committed by Leon Lux
Browse files

Truncate zu saveChanges hinzugefügt.

parent 5f7fc29d
No related branches found
No related tags found
1 merge request!55Abgabe des Projektes
......@@ -25,7 +25,7 @@ Level::Level(const fs::path &path)
void Level::saveChanges(const fs::path& path) const
{
HighFive::File file(path.c_str(), HighFive::File::Create);
HighFive::File file(path.c_str(), HighFive::File::Create | HighFive::File::Truncate);
m_Spritesheet.toHDF5(file);
saveEnemies(file);
saveRooms(file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment