Reset existing data when loading new plugin.

This commit is contained in:
Oliver Hamlet
2015-07-13 09:58:38 +01:00
parent e7588fc267
commit 34a03f8511
+8
View File
@@ -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;