Fix antimagic effect never expiring (#77500)

## About The Pull Request

Fixes #77499 

I messed this up resolving merge conflicts. 

## Changelog

🆑 Melbert
fix: Fix antimagic effect not expiring 
/🆑
This commit is contained in:
MrMelbert
2023-08-10 20:48:44 -06:00
committed by GitHub
parent 03f5b97b73
commit c6fe13bf6c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -579,8 +579,8 @@ SUBSYSTEM_DEF(timer)
* * timer_subsystem the subsystem to insert this timer into
*/
/proc/_addtimer(datum/callback/callback, wait = 0, flags = 0, datum/controller/subsystem/timer/timer_subsystem, file, line)
if (!callback)
CRASH("addtimer called without a callback")
ASSERT(istype(callback), "addtimer called [callback ? "with an invalid callback ([callback])" : "without a callback"]")
ASSERT(isnum(wait), "addtimer called with a non-numeric wait ([wait])")
if (wait < 0)
stack_trace("addtimer called with a negative wait. Converting to [world.tick_lag]")