Skip to content

Commit

Permalink
Fix null parent crash in radial slice clicked()
Browse files Browse the repository at this point in the history
function
  • Loading branch information
Zonespace27 committed Nov 17, 2023
1 parent 145da65 commit 5fc2e0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/_onclick/hud/radial.dm
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ GLOBAL_LIST_EMPTY(radial_menus)


/atom/movable/screen/radial/slice/clicked(mob/user)
if(QDELETED(src))
return

if(!parent)
CRASH("clicked() called on a radial slice with a null parent while not deleted/deleting")

if(user.client == parent.current_user)
if(next_page)
parent.next_page()
Expand Down

0 comments on commit 5fc2e0c

Please sign in to comment.