diff --git a/src/bind_tolua.c b/src/bind_tolua.c index d681b9088..3812e7689 100644 --- a/src/bind_tolua.c +++ b/src/bind_tolua.c @@ -14,7 +14,8 @@ #include -void tolua_bind_open(lua_State * L) { +void tolua_bind_open(lua_State * L) +{ tolua_eressea_open(L); tolua_process_open(L); tolua_settings_open(L); diff --git a/src/bindings.c b/src/bindings.c index 5cb758175..f2beb6d06 100755 --- a/src/bindings.c +++ b/src/bindings.c @@ -3,6 +3,7 @@ #endif #include "bindings.h" +#include "bind_tolua.h" #include "console.h" #include "gamedb.h" @@ -865,8 +866,6 @@ static int lua_rng_default(lua_State *L) { return 0; } -void tolua_bind_open(lua_State * L); - int tolua_bindings_open(lua_State * L, const dictionary *inifile) { tolua_open(L); diff --git a/src/bindings.h b/src/bindings.h index 144f65ca6..f0259bc6e 100755 --- a/src/bindings.h +++ b/src/bindings.h @@ -12,6 +12,8 @@ extern "C" { int tolua_selist_push(struct lua_State *L, const char *list_type, const char *elem_type, struct selist *list); + void bind_monsters(struct lua_State *L); + int log_lua_error(struct lua_State *L); void lua_done(struct lua_State *L); diff --git a/src/main.c b/src/main.c index cfc2f9c22..130a2f6f7 100644 --- a/src/main.c +++ b/src/main.c @@ -290,8 +290,6 @@ void locale_init(void) } } -extern void bind_monsters(lua_State *L); - int main(int argc, char **argv) { int err = 0;