Fixed wrong checking of parameter count for script function context(), it should take no parameters.

master
Tomatix 4 years ago
parent 8574a86fb8
commit ba9d175840
  1. 2
      ScriptFunctions/ScriptGeneralUtils.cpp

@ -131,7 +131,7 @@ ValueHolder showmessage(Script&, std::vector<ValueHolder>& args)
ValueHolder context(Script&, std::vector<ValueHolder>& args)
{
if (args.empty())
if (!args.empty())
throwInsufficientParameters("context", args.size(), 0);
const auto& connection = ScriptManager::getContext()->getConnection();

Loading…
Cancel
Save