Skip to content

Commit 8ffa270

Browse files
committed
Fixed various pie options (todo, in future we should cache *all* functions, not just those asked for?)
1 parent f130bca commit 8ffa270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Entities/PieSlice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ namespace RTE {
170170
std::string filePath = m_LuabindFunctionObject->GetFilePath();
171171
std::unordered_map<std::string, LuabindObjectWrapper *> scriptFileFunctions;
172172

173-
status = g_LuaMan.GetMasterScriptState().RunScriptFileAndRetrieveFunctions(filePath, "", { m_FunctionName }, scriptFileFunctions);
173+
status = g_LuaMan.GetMasterScriptState().RunScriptFileAndRetrieveFunctions(filePath, "", { m_FunctionName }, scriptFileFunctions, true);
174174
if (scriptFileFunctions.find(m_FunctionName) != scriptFileFunctions.end()) {
175175
m_LuabindFunctionObject = std::unique_ptr<LuabindObjectWrapper>(scriptFileFunctions.at(m_FunctionName));
176176
}

0 commit comments

Comments
 (0)