diff --git a/code/game/sound.dm b/code/game/sound.dm index 5a09c5a935..5b1214c675 100644 --- a/code/game/sound.dm +++ b/code/game/sound.dm @@ -4,6 +4,8 @@ return var/turf/turf_source = get_turf(source) + if(!turf_source) + return var/area/area_source = turf_source.loc //allocate a channel if necessary now so its the same for everyone @@ -20,6 +22,8 @@ if(!M || !M.client) continue var/turf/T = get_turf(M) + if(!T) + continue var/area/A = T.loc if((A.soundproofed || area_source.soundproofed) && (A != area_source)) continue