diff --git a/src/io/engine_paths.cpp b/src/io/engine_paths.cpp index 147f4f89..03973d60 100644 --- a/src/io/engine_paths.cpp +++ b/src/io/engine_paths.cpp @@ -186,6 +186,9 @@ void EnginePaths::setContentPacks(std::vector* contentPacks) { for (const auto& id : contentEntryPoints) { io::remove_device(id); } + for (const auto& [_, entryPoint] : writeablePacks) { + io::remove_device(entryPoint); + } contentEntryPoints.clear(); this->contentPacks = contentPacks; // Create content devices