Skip to content

Commit

Permalink
added initialisation for topic limiter when null
Browse files Browse the repository at this point in the history
  • Loading branch information
mullenpaul committed Dec 24, 2023
1 parent dc4c061 commit ef3e131
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ GLOBAL_LIST_INIT(whitelisted_client_procs, list(
))

/client/proc/reduce_minute_count()
if (!topiclimiter)
topiclimiter = new(LIMITER_SIZE)
if(topiclimiter[MINUTE_COUNT] > 0)
topiclimiter[MINUTE_COUNT] -= 1

Expand Down

0 comments on commit ef3e131

Please sign in to comment.