Skip to content

Commit

Permalink
Revert environment change, it broke everything else
Browse files Browse the repository at this point in the history
  • Loading branch information
maximegmd committed Feb 17, 2021
1 parent 13ff771 commit 00f3f5c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/scripting/ScriptContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ ScriptContext::ScriptContext(LuaSandbox& aLuaSandbox, const std::filesystem::pat

env["registerForEvent"] = [this](const std::string& acName, sol::function aCallback)
{
m_sandbox[m_sandboxID].GetEnvironment().set_on(aCallback);

if(acName == "onInit")
m_onInit = aCallback;
else if(acName == "onShutdown")
Expand Down Expand Up @@ -74,8 +72,6 @@ ScriptContext::ScriptContext(LuaSandbox& aLuaSandbox, const std::filesystem::pat
return;
}

m_sandbox[m_sandboxID].GetEnvironment().set_on(aCallback);

auto loggerRef = m_logger;
std::string vkBindID = m_name + '.' + acID;
VKBind vkBind = { vkBindID, acDescription, [loggerRef, aCallback]()
Expand Down

0 comments on commit 00f3f5c

Please sign in to comment.