summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-08-25 13:12:05 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-08-25 13:12:05 (EDT)
commit91af279237bc74e3e76833a694b24c37249b501d (patch)
treec7084f41c78510c57c1e5c590063eb6aa6a26ed7
parenta22741efd694332f3b69e087ed77e353ed75a85d (diff)
downloadoverworld-rpg-91af279237bc74e3e76833a694b24c37249b501d.zip
overworld-rpg-91af279237bc74e3e76833a694b24c37249b501d.tar.gz
overworld-rpg-91af279237bc74e3e76833a694b24c37249b501d.tar.bz2
script_get(): Register bindings
-rw-r--r--src/resources/script.c4
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);