Skip to content

Commit a06f3b7

Browse files
committed
fix crash when using log on doe
1 parent 118e58a commit a06f3b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

items/code.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,8 @@ local log = {
35283528
local pseudorandom = copy_table(G.GAME.pseudorandom)
35293529
local j = {}
35303530
for i = 1, 5 do
3531-
j[#j + 1] = G.localization.descriptions["Joker"][Cryptid.predict_joker("sho")].name
3531+
local next_joker = G.localization.descriptions["Joker"][Cryptid.predict_joker("sho")]
3532+
j[#j + 1] = next_joker and next_joker.name or "[NOT A JOKER]"
35323533
end
35333534
G.GAME.pseudorandom = copy_table(pseudorandom)
35343535
G.GAME.USING_CODE = true

0 commit comments

Comments
 (0)