fix creating factions with invalid race (return nil)

This commit is contained in:
Enno Rehling 2015-04-04 15:08:35 +02:00
parent 4513a8749b
commit 82926318c0
1 changed files with 1 additions and 1 deletions

View File

@ -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;