From ab9397ebd2d67f47bbb13e29463081d3d838e810 Mon Sep 17 00:00:00 2001 From: Leland Kemble <70413276+lelandkemble@users.noreply.github.com> Date: Wed, 10 Jun 2026 21:16:33 -0400 Subject: [PATCH] Fixes runtime when trying to pull a turf (#96420) ## About The Pull Request No type check prior ## Why It's Good For The Game Runtime ## Changelog :cl: fix: fixed a runtime when trying to pull a turf /:cl: --- code/_onclick/click_ctrl.dm | 2 +- code/modules/mob/living/living.dm | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/_onclick/click_ctrl.dm b/code/_onclick/click_ctrl.dm index e80f8fa05cb..37c8e3ec119 100644 --- a/code/_onclick/click_ctrl.dm +++ b/code/_onclick/click_ctrl.dm @@ -34,7 +34,7 @@ SHOULD_NOT_OVERRIDE(TRUE) . = ..() - if(. || world.time < next_move || !can_perform_action(target, NOT_INSIDE_TARGET | SILENT_ADJACENCY | ALLOW_RESTING | FORBID_TELEKINESIS_REACH)) + if(. || !ismovable(target) || world.time < next_move || !can_perform_action(target, NOT_INSIDE_TARGET | SILENT_ADJACENCY | ALLOW_RESTING | FORBID_TELEKINESIS_REACH)) return . = TRUE diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 83561f37f9f..0b91518a009 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -374,8 +374,9 @@ now_pushing = FALSE /mob/living/start_pulling(atom/movable/AM, state, force = pull_force, supress_message = FALSE) - if(!AM || !src) + if(!src) return FALSE + ASSERT(ismovable(AM), "[src] attempted to pull [AM ? "[AM], a nonmovable atom" : "a null object"]") if(!(AM.can_be_pulled(src, force))) return FALSE if(throwing || !(mobility_flags & MOBILITY_PULL))