Skip to content

Instantly share code, notes, and snippets.

@asavah
Created March 14, 2021 04:03
Show Gist options
  • Save asavah/159b1ecfec75563ff3082a1f3aba4a79 to your computer and use it in GitHub Desktop.
Save asavah/159b1ecfec75563ff3082a1f3aba4a79 to your computer and use it in GitHub Desktop.
diff --git a/xbmc/interfaces/generic/ScriptRunner.cpp b/xbmc/interfaces/generic/ScriptRunner.cpp
index 960b87751e..302e504672 100644
--- a/xbmc/interfaces/generic/ScriptRunner.cpp
+++ b/xbmc/interfaces/generic/ScriptRunner.cpp
@@ -27,6 +27,9 @@ ADDON::AddonPtr CScriptRunner::GetAddon() const
return m_addon;
}
+CScriptRunner::CScriptRunner() : m_scriptDone(true)
+{ }
+
bool CScriptRunner::StartScript(ADDON::AddonPtr addon, const std::string& path)
{
return RunScriptInternal(addon, path, 0, false);
diff --git a/xbmc/interfaces/generic/ScriptRunner.h b/xbmc/interfaces/generic/ScriptRunner.h
index f356326dae..52892225e0 100644
--- a/xbmc/interfaces/generic/ScriptRunner.h
+++ b/xbmc/interfaces/generic/ScriptRunner.h
@@ -16,7 +16,7 @@
class CScriptRunner
{
protected:
- CScriptRunner() = default;
+ CScriptRunner();
virtual ~CScriptRunner() = default;
virtual bool IsSuccessful() const = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment