diff --git a/core/logic/PluginSys.cpp b/core/logic/PluginSys.cpp index bac9fb1b..dcc97f9f 100644 --- a/core/logic/PluginSys.cpp +++ b/core/logic/PluginSys.cpp @@ -1283,8 +1283,8 @@ bool CPluginManager::RunSecondPass(CPlugin *pPlugin, char *error, size_t maxleng { CPlugin *pOther = (*pl_iter); if ((pOther->GetStatus() == Plugin_Error - && (pOther->m_FakeNativesMissing || pOther->m_LibraryMissing)) - || pOther->m_FakeNativesMissing) + && (pOther->HasMissingFakeNatives() || pOther->m_LibraryMissing)) + || pOther->HasMissingFakeNatives()) { TryRefreshDependencies(pOther); } diff --git a/core/logic/PluginSys.h b/core/logic/PluginSys.h index 1656b4cc..a74f9d87 100644 --- a/core/logic/PluginSys.h +++ b/core/logic/PluginSys.h @@ -273,6 +273,10 @@ public: void AddRequiredLib(const char *name); bool ForEachRequiredLib(ke::Lambda callback); + bool HasMissingFakeNatives() const { + return m_FakeNativesMissing; + } + protected: bool ReadInfo(); void DependencyDropped(CPlugin *pOwner);