fix: app.reconfig_packs attempts to remove indices in generator test mode

This commit is contained in:
MihailRis 2026-06-01 01:38:06 +03:00
parent 38bebac37e
commit ce189c810d

View file

@ -378,8 +378,11 @@ void EngineController::reconfigPacks(
auto& manager = contentControl.scan();
reconfig_packs_inside(manager, names, packsToAdd, packsToRemove);
const auto& settings = engine.getSettings();
auto& wfile = *world->wfile;
wfile.removeIndices(packsToRemove);
if (!settings.debug.generatorTestMode.get()) {
wfile.removeIndices(packsToRemove);
}
wfile.writePacks(manager.getAll(names));
reopenWorld(world);
}