mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 09:34:21 +01:00
Fix
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user