Fixed a runtime on deletion of paper stacks due to erroneous conversion of datum bracket access (#19891)

Fixed a runtime on deletion of paper stacks due to erroneous conversion
of datum bracket access.
Some DMDocs.

Potentially fixes #19888
This commit is contained in:
Fluffy
2024-09-21 11:20:45 +00:00
committed by GitHub
parent f1d79505b9
commit 77f0f0730d
2 changed files with 70 additions and 4 deletions
+11 -4
View File
@@ -10,9 +10,16 @@
throw_speed = 1
layer = ABOVE_OBJ_LAYER
attack_verb = list("bapped")
var/page = 1 // current page
var/list/pages = list() // Ordered list of pages as they are to be displayed. Can be different order than src.contents.
var/amount = 0 // How many sheet
/// current page
var/page = 1
/// Ordered list of pages as they are to be displayed. Can be different order than src.contents.
var/list/pages = list()
/// How many sheet
var/amount = 0
drop_sound = 'sound/items/drop/paper.ogg'
pickup_sound = 'sound/items/pickup/paper.ogg'
@@ -203,7 +210,7 @@
if(pages.len <= 1)
var/obj/item/paper/P = src.vars[1]
var/obj/item/paper/P = src.pages[1]
if(istype(loc, /obj/item/gripper)) //Hacky but without it there's a ghost icon with grippers and it all spills on the floor.
var/obj/item/gripper/G = loc
G.drop(get_turf(src), usr, FALSE)