mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-16 13:12:22 +00:00
Fix runtime in helper.dm,92 (#6706)
Lists in byond are 1-indexed not 0-indexed.
This commit is contained in:
@@ -89,8 +89,8 @@
|
|||||||
|
|
||||||
// Cut out all but the youngest three
|
// Cut out all but the youngest three
|
||||||
while(news.len > 3)
|
while(news.len > 3)
|
||||||
var/oldest = min(news[0]["time_stamp"], news[1]["time_stamp"], news[2]["time_stamp"], news[3]["time_stamp"])
|
var/oldest = min(news[1]["time_stamp"], news[2]["time_stamp"], news[3]["time_stamp"], news[4]["time_stamp"])
|
||||||
for(var/i = 0, i < 4, i++)
|
for(var/i = 1, i <= 4, i++)
|
||||||
if(news[i]["time_stamp"] == oldest)
|
if(news[i]["time_stamp"] == oldest)
|
||||||
news.Remove(news[i])
|
news.Remove(news[i])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user