From b2ab2cfbd8fb9e211df65298697a6dee03a07250 Mon Sep 17 00:00:00 2001 From: SabreML <57483089+SabreML@users.noreply.github.com> Date: Fri, 3 Sep 2021 14:24:56 +0100 Subject: [PATCH] Fix --- code/game/machinery/computer/message.dm | 2 +- code/modules/pda/mob_hunt_game_app.dm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/game/machinery/computer/message.dm b/code/game/machinery/computer/message.dm index 6bab0b713d4..10e36785369 100644 --- a/code/game/machinery/computer/message.dm +++ b/code/game/machinery/computer/message.dm @@ -39,7 +39,7 @@ return INITIALIZE_HINT_LATELOAD // Give the message server time to initialize /obj/machinery/computer/message_monitor/LateInitialize() - //Is the monitor isn't linked to a server, and there's a server available, default it to the first one in the list. + //If the monitor isn't linked to a server, and there's a server available, default it to the first one in the list. if(!linkedServer && length(GLOB.message_servers)) linkedServer = GLOB.message_servers[1] RegisterSignal(linkedServer, COMSIG_PARENT_QDELETING, .proc/unlink_server) diff --git a/code/modules/pda/mob_hunt_game_app.dm b/code/modules/pda/mob_hunt_game_app.dm index 8b5f081ee97..fe4ef7962f3 100644 --- a/code/modules/pda/mob_hunt_game_app.dm +++ b/code/modules/pda/mob_hunt_game_app.dm @@ -154,8 +154,7 @@ */ /datum/data/pda/app/mob_hunter_game/proc/remove_mob(datum/mob_hunt/mob_override = null) SIGNAL_HANDLER - var/collection_length = length(my_collection) - if(!collection_length) + if(!length(my_collection)) return if(mob_override) @@ -163,6 +162,7 @@ else my_collection -= my_collection[current_index] + var/collection_length = length(my_collection) if(current_index > collection_length) current_index = collection_length