core renderer: fixed small issue introduced on #1145
This commit is contained in:
parent
1c5936e697
commit
1708462f4c
|
@ -144,7 +144,7 @@ static int f_font_group(lua_State* L) {
|
|||
luaL_checktype(L, 1, LUA_TTABLE);
|
||||
|
||||
table_size = lua_rawlen(L, 1);
|
||||
if (table_size >= FONT_FALLBACK_MAX)
|
||||
if (table_size > FONT_FALLBACK_MAX)
|
||||
return luaL_error(L, "failed to create font group: table size too large");
|
||||
|
||||
// we also need to ensure that there are no fontgroups inside it
|
||||
|
|
Loading…
Reference in New Issue