mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix null pointer dereference
Fortunately the function is never actually called with a null pointer.
This commit is contained in:
@@ -108,9 +108,10 @@ PluginSortingData::PluginSortingData(
|
||||
std::string PluginSortingData::GetName() const { return plugin_->GetName(); }
|
||||
|
||||
bool PluginSortingData::IsMaster() const {
|
||||
return plugin_ != nullptr && plugin_->IsMaster() ||
|
||||
(plugin_->IsLightPlugin() &&
|
||||
!boost::iends_with(plugin_->GetName(), ".esp"));
|
||||
return plugin_ != nullptr &&
|
||||
(plugin_->IsMaster() ||
|
||||
(plugin_->IsLightPlugin() &&
|
||||
!boost::iends_with(plugin_->GetName(), ".esp")));
|
||||
}
|
||||
|
||||
bool PluginSortingData::LoadsArchive() const {
|
||||
|
||||
Reference in New Issue
Block a user