diff --git a/examples/config.cpp b/examples/config.cpp index 9ab7a8e3..6b9929ac 100644 --- a/examples/config.cpp +++ b/examples/config.cpp @@ -19,7 +19,7 @@ struct config { int main() { sol::state lua; config screen; - lua.open_file("config.lua"); + lua.script_file("config.lua"); screen.name = lua.get("name"); screen.width = lua.get("width"); screen.height = lua.get("height");