From d494f02fe39354d44daeb08081fcd35689b4aafa Mon Sep 17 00:00:00 2001 From: Connor O'Connor Date: Mon, 8 Dec 2025 03:32:56 -0500 Subject: [PATCH] fix table.empty being inverted --- src/util/std.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/std.lua b/src/util/std.lua index 1774162..1a40232 100644 --- a/src/util/std.lua +++ b/src/util/std.lua @@ -4,7 +4,7 @@ -- Table / List -- Whether a table contains no keys function table.empty(t) - return next(t) ~= nil + return next(t) == nil end -- Apply a function to each key in a table