Skip to content

Commit

Permalink
[S] Fixes an exploit (ParadiseSS13#24721)
Browse files Browse the repository at this point in the history
* fixes an exploit

* length
  • Loading branch information
BiancaWilkson authored Mar 21, 2024
1 parent 2be59d1 commit fa54eee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/paperwork/paper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,9 @@
info = "<i>Heat-curled corners and sooty words offer little insight. Whatever was once written on this page has been rendered illegible through fire.</i>"

/obj/item/paper/proc/stamp(obj/item/stamp/S)
if(length(stamp_overlays) > 49) //Do not remove this cap or you'll unleash evil upon the world
return

stamps += (!stamps || stamps == "" ? "<HR>" : "") + "<img src=large_[S.icon_state].png>"

var/image/stampoverlay = image('icons/obj/bureaucracy.dmi')
Expand Down

0 comments on commit fa54eee

Please sign in to comment.