From e554b9f19d3dda4e748d97e463bb0f26a604ecc1 Mon Sep 17 00:00:00 2001 From: mochi Date: Wed, 22 Jul 2020 07:46:04 +0200 Subject: [PATCH] Fix runtimes --- code/modules/instruments/songs/play_legacy.dm | 2 +- code/modules/instruments/songs/play_synthesized.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/instruments/songs/play_legacy.dm b/code/modules/instruments/songs/play_legacy.dm index df1a27f073a..61d7964caf4 100644 --- a/code/modules/instruments/songs/play_legacy.dm +++ b/code/modules/instruments/songs/play_legacy.dm @@ -89,7 +89,7 @@ var/sound/music_played = sound(soundfile) for(var/i in hearing_mobs) var/mob/M = i - if(!(M.client.prefs.sound & SOUND_INSTRUMENTS)) + if(!(M.client?.prefs?.sound & SOUND_INSTRUMENTS)) continue M.playsound_local(source, null, volume * using_instrument.volume_multiplier, falloff = 5, S = music_played) // Could do environment and echo later but not for now diff --git a/code/modules/instruments/songs/play_synthesized.dm b/code/modules/instruments/songs/play_synthesized.dm index daeef4d78f3..b2f16f6ab91 100644 --- a/code/modules/instruments/songs/play_synthesized.dm +++ b/code/modules/instruments/songs/play_synthesized.dm @@ -62,7 +62,7 @@ last_channel_played = channel_text for(var/i in hearing_mobs) var/mob/M = i - if(!(M.client.prefs.sound & SOUND_INSTRUMENTS)) + if(!(M.client?.prefs?.sound & SOUND_INSTRUMENTS)) continue M.playsound_local(get_turf(parent), null, volume, FALSE, K.frequency, INSTRUMENT_DISTANCE_NO_FALLOFF, channel, null, copy, distance_multiplier = INSTRUMENT_DISTANCE_FALLOFF_BUFF) // Could do environment and echo later but not for now