diff --git a/core/DebugReporter.cpp b/core/DebugReporter.cpp index 4572ebaf..d86fa111 100644 --- a/core/DebugReporter.cpp +++ b/core/DebugReporter.cpp @@ -181,6 +181,9 @@ int DebugReport::_GetPluginIndex(IPluginContext *ctx) } iter->Release(); - return -1; + + /* If we don't know which plugin this is, it's one being loaded. Fake its index for now. */ + + return g_PluginSys.GetPluginCount() + 1; }