Various Null Access Fixes (#22730)

<img width="1420" height="776" alt="image"
src="https://github.com/user-attachments/assets/d33c4ce2-9c5b-48c3-ac8b-5edfee51c7e0"
/>

Just a few fixes for some various runtime errors and two hard del
triggers on the Sentry logs.
This commit is contained in:
VMSolidus
2026-06-19 13:57:37 -04:00
committed by GitHub
parent 1c6938707c
commit a67a6ae94a
5 changed files with 23 additions and 11 deletions
+3 -5
View File
@@ -153,13 +153,11 @@
var/mobnames = ""
if (touched_mobs.len > 1)
mobnames += "Affected players: "
var/i = 1
do
var/num_players = length(touched_mobs)
for (var/i = 1, i <= num_players, i++)
mobnames += "<A href='byond://?_src_=holder;adminmoreinfo=[REF(touched_mobs[i])]'>?</a>"
if (touched_mobs[i+1])
if (i < num_players)
mobnames += ", "
i++
while (touched_mobs[i])
mobnames += "."
else mobnames += "Affected player: [touched_mobs[1]]."
var/containing = ""