diff options
-rw-r--r-- | src/resources/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/script.c b/src/resources/script.c index 5212219..5af4d58 100644 --- a/src/resources/script.c +++ b/src/resources/script.c @@ -20,7 +20,7 @@ #include <lualib.h> #include <lauxlib.h> #include "../logging.h" -#include "../viewport.h" +#include "../scripting/ffi.h" #include "script.h" #include "resource.h" @@ -58,7 +58,7 @@ script_get(const char *path) lua_tostring(s->lua_state, -1)); } - lua_register(s->lua_state, "init_viewport", init_viewport_lua); + ffi_register_functions(s); resource_use((struct resource *) s); resource_add(&script_res, path, (struct resource *) s); |