From 5770291b4ee91dde3ac1154131b8e9ef2947c02c Mon Sep 17 00:00:00 2001 From: Leshana Date: Wed, 19 Feb 2020 01:24:30 -0500 Subject: [PATCH] Fix runtime in helper.dm,92 (#6706) Lists in byond are 1-indexed not 0-indexed. --- code/game/objects/items/devices/communicator/helper.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/devices/communicator/helper.dm b/code/game/objects/items/devices/communicator/helper.dm index 273686fb46..1ab12968d8 100644 --- a/code/game/objects/items/devices/communicator/helper.dm +++ b/code/game/objects/items/devices/communicator/helper.dm @@ -89,8 +89,8 @@ // Cut out all but the youngest three while(news.len > 3) - var/oldest = min(news[0]["time_stamp"], news[1]["time_stamp"], news[2]["time_stamp"], news[3]["time_stamp"]) - for(var/i = 0, i < 4, i++) + var/oldest = min(news[1]["time_stamp"], news[2]["time_stamp"], news[3]["time_stamp"], news[4]["time_stamp"]) + for(var/i = 1, i <= 4, i++) if(news[i]["time_stamp"] == oldest) news.Remove(news[i])