diff --git a/src/api/renderer.c b/src/api/renderer.c index 3ae876d3..383618b4 100644 --- a/src/api/renderer.c +++ b/src/api/renderer.c @@ -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