From 82926318c0c5b79aa959ef43932523194c2b59bf Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 4 Apr 2015 15:08:35 +0200 Subject: [PATCH] fix creating factions with invalid race (return nil) --- src/bind_faction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bind_faction.c b/src/bind_faction.c index cfe57ebb4..697a164d9 100644 --- a/src/bind_faction.c +++ b/src/bind_faction.c @@ -351,7 +351,7 @@ static int tolua_faction_create(lua_State * L) f = addfaction(email, NULL, frace, loc, 0); } if (!f) { - log_error("faction.create(%s, %s, %s)\n", email, frace->_name, locale_name(loc)); + log_error("faction.create(%s, %s, %s)\n", email, racename, locale_name(loc)); } tolua_pushusertype(L, f, TOLUA_CAST "faction"); return 1;