From 0031665230c9de9509febf2bb17b827516a1e51c Mon Sep 17 00:00:00 2001 From: wingedcatgirl <69098783+wingedcatgirl@users.noreply.github.com> Date: Tue, 12 May 2026 13:15:11 -0400 Subject: [PATCH] ... wait, won't this crash if `losses` doesn't already exist? --- src/utils.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.lua b/src/utils.lua index 87a97c4b5..bb9b00827 100644 --- a/src/utils.lua +++ b/src/utils.lua @@ -827,6 +827,7 @@ function convert_save_data() end end if v.losses_by_key then + v.losses = {} for kk,vv in pairs(v.losses_by_key) do local index = G.P_STAKES[kk] and G.P_STAKES[kk].order if index then v.losses[index] = vv end @@ -852,6 +853,7 @@ function convert_save_data() end end if v.losses_by_key then + v.losses = {} for kk,vv in pairs(v.losses_by_key) do local index = G.P_STAKES[kk] and G.P_STAKES[kk].order if index then v.losses[index] = vv end