Skip to content

Commit

Permalink
Fix null parent crash in radial slice clicked() (#4949)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Nov 19, 2023
1 parent 5ac1975 commit 5f3331f
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 5f3331f

Please sign in to comment.