should use safe_script, not just script

This commit is contained in:
ThePhD 2019-08-27 20:36:17 -04:00
parent 0b6c7f47e7
commit e60a628e16
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA

View File

@ -54,7 +54,7 @@ TEST_CASE("functions/empty std functions", "std::function is allowed to be empty
lua["Foo"] = foo;
lua["Bar"] = bar;
sol::optional<sol::error> result = lua.script(R"SCR(
sol::optional<sol::error> result = lua.safe_script(R"SCR(
if Bar ~= nil
then
Bar()