core renderer: fixed small issue introduced on #1145

This commit is contained in:
jgmdev 2022-10-19 21:11:29 -04:00
parent 1c5936e697
commit 1708462f4c
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ static int f_font_group(lua_State* L) {
luaL_checktype(L, 1, LUA_TTABLE); luaL_checktype(L, 1, LUA_TTABLE);
table_size = lua_rawlen(L, 1); 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"); 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 // we also need to ensure that there are no fontgroups inside it