From 445475dcb140a9faa145e42ad541cf268eebc6bd Mon Sep 17 00:00:00 2001 From: shwb1 Date: Mon, 20 Nov 2023 20:17:34 -0500 Subject: [PATCH] Poly speech/memory fix. (#79851) ## About The Pull Request Simple fix for Poly's AI, Read Memory was returning null into a list used for Poly's speech causing a stack error. I changed the returned value to the empty returnable list to negate this problem. Fixes #79844 Fixes #79859 Fixes #79865 First time making a pull request on Github, please bear with me if i make any mistakes. ## Why It's Good For The Game Less errors on the servers side. Probably saving the headache of debugging from some other poor soul. --------- Co-authored-by: san7890 --- code/modules/mob/living/basic/pets/parrot/poly.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/basic/pets/parrot/poly.dm b/code/modules/mob/living/basic/pets/parrot/poly.dm index ecd6e054609..42c3061bdd6 100644 --- a/code/modules/mob/living/basic/pets/parrot/poly.dm +++ b/code/modules/mob/living/basic/pets/parrot/poly.dm @@ -129,7 +129,7 @@ else var/json_file = file("data/npc_saves/Poly.json") if(!fexists(json_file)) - return + return list() var/list/json = json_decode(file2text(json_file)) returnable_list = json["phrases"] rounds_survived = json["roundssurvived"]