diff --git a/src/backend/plugin/plugin_loader.cpp b/src/backend/plugin/plugin_loader.cpp index da52c7fa..80b10737 100644 --- a/src/backend/plugin/plugin_loader.cpp +++ b/src/backend/plugin/plugin_loader.cpp @@ -45,6 +45,14 @@ namespace loot { espm::File * file = nullptr; espm::Settings espmSettings; + // Clear existing data. + _isEmpty = true; + _isMaster = false; + _formIDs.clear(); + _masters.clear(); + _description.clear(); + _crc = 0; + // Get data from file contents using libespm. BOOST_LOG_TRIVIAL(trace) << name << ": " << "Opening with libespm..."; boost::filesystem::path filepath = game.DataPath() / name;