We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce42a5d commit 37f9f0aCopy full SHA for 37f9f0a
Entities/GlobalScript.cpp
@@ -75,7 +75,7 @@ namespace RTE {
75
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
76
77
const std::vector<std::unique_ptr<PieSlice>>& GlobalScript::GetPieSlicesToAdd() const {
78
- const std::vector<std::unique_ptr<PieSlice>> emptyVector;
+ static const std::vector<std::unique_ptr<PieSlice>> emptyVector;
79
if (!m_HasStarted || !m_IsActive || !g_SettingsMan.IsGlobalScriptEnabled(GetModuleAndPresetName())) {
80
return emptyVector;
81
}
0 commit comments