From 33c689da636661919699edb8ebea2de578f6289f Mon Sep 17 00:00:00 2001 From: Nicholas Sklar <5591815+nikolateslax@users.noreply.github.com> Date: Tue, 26 May 2026 18:03:17 -0500 Subject: [PATCH] Added a quick nil check to _G.hspairs before the call to pairs --- G.A.M.M.A/modpack_patches/gamedata/scripts/_g_patches.script | 1 + 1 file changed, 1 insertion(+) diff --git a/G.A.M.M.A/modpack_patches/gamedata/scripts/_g_patches.script b/G.A.M.M.A/modpack_patches/gamedata/scripts/_g_patches.script index 77de9a663..2fbbf9669 100644 --- a/G.A.M.M.A/modpack_patches/gamedata/scripts/_g_patches.script +++ b/G.A.M.M.A/modpack_patches/gamedata/scripts/_g_patches.script @@ -803,6 +803,7 @@ _G.hspairs = function(t, order) -- collect the keys local n = 0 local keys = {} + if t == nil then return nil_func end for k in pairs(t) do n = n + 1 keys[n] = k