diff --git a/src/nhlua.c b/src/nhlua.c index dad9f55b6..ff8c985e9 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -239,7 +239,7 @@ get_table_mapchr_opt(lua_State *L, const char *name, schar defval) xint8 typ; ter = get_table_str_opt(L, name, emptystr); - if (name && ter && *ter) { + if (ter && *ter) { typ = (xint8) check_mapchr(ter); if (typ == INVALID_TYPE) nhl_error(L, "Erroneous map char");