diff --git a/code/modules/vore/smoleworld/smoleworld_vr.dm b/code/modules/vore/smoleworld/smoleworld_vr.dm index 09ecbcece2..a4e4d43327 100644 --- a/code/modules/vore/smoleworld/smoleworld_vr.dm +++ b/code/modules/vore/smoleworld/smoleworld_vr.dm @@ -173,10 +173,9 @@ return to_chat(user, "[src] was dismantaled into bricks.") playsound(src, 'sound/items/smolesmallbuild.ogg', 50, 1, -1, volume_channel = VOLUME_CHANNEL_MASTER) - var/turf/simulated/floor/F = get_turf(src) - if(istype(F)) - new /obj/item/stack/material/smolebricks(F) - new /obj/item/stack/material/smolebricks(F) + if(!isnull(loc)) + new /obj/item/stack/material/smolebricks(loc) + new /obj/item/stack/material/smolebricks(loc) qdel(src) else if (usr.a_intent == I_HURT) @@ -404,4 +403,4 @@ starts_with = list(/obj/item/weapon/reagent_containers/food/snacks/snackplanet/phoron, /obj/item/weapon/reagent_containers/food/snacks/snackplanet/virgo3b,/obj/item/weapon/reagent_containers/food/snacks/snackplanet/moon, /obj/item/weapon/reagent_containers/food/snacks/snackplanet/virgoprime - ) \ No newline at end of file + )