summaryrefslogtreecommitdiffstats
path: root/src/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/script.c')
-rw-r--r--src/script.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script.c b/src/script.c
index cb1baf6..a4e5988 100644
--- a/src/script.c
+++ b/src/script.c
@@ -21,6 +21,7 @@
#include <lualib.h>
#include <lauxlib.h>
#include "logging.h"
+#include "viewport.h"
#include "script.h"
/* LUA_OK is defined in Lua 5.2 but not 5.1. */
@@ -53,6 +54,8 @@ script_load(const char *path)
lua_tostring(s->lua_state, -1));
}
+ lua_register(s->lua_state, "init_viewport", init_viewport_lua);
+
return s;
}