From 4d329b8bf87e54b8c0ebfa33f7b0eac96e907396 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 26 Nov 2014 17:44:02 +0100 Subject: [PATCH] fix missing get_faction binding, add faction.get() --- src/bind_faction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bind_faction.c b/src/bind_faction.c index 8ac87c1d4..081bb6eca 100644 --- a/src/bind_faction.c +++ b/src/bind_faction.c @@ -519,8 +519,9 @@ void tolua_faction_open(lua_State * L) tolua_module(L, NULL, 0); tolua_beginmodule(L, NULL); { - tolua_beginmodule(L, TOLUA_CAST "eressea"); tolua_function(L, TOLUA_CAST "get_faction", tolua_faction_get); + tolua_beginmodule(L, TOLUA_CAST "eressea"); + tolua_function(L, TOLUA_CAST "faction", tolua_faction_get); tolua_endmodule(L); tolua_cclass(L, TOLUA_CAST "faction", TOLUA_CAST "faction", TOLUA_CAST "", NULL);