mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-02 05:23:01 +00:00
Band-aids three runtimes (#4591)
* Runtime in dna_modifier.dm,330: Cannot read null.occupant * Runtime in Chemistry-Reagents.dm,47: Cannot execute null.remove reagent(). * Runtime in blood.dm,182: Division by zero * Compiled with the right map this time
This commit is contained in:
@@ -44,7 +44,8 @@
|
||||
var/list/glass_special = null // null equivalent to list()
|
||||
|
||||
/datum/reagent/proc/remove_self(var/amount) // Shortcut
|
||||
holder.remove_reagent(id, amount)
|
||||
if(holder)
|
||||
holder.remove_reagent(id, amount)
|
||||
|
||||
// This doesn't apply to skin contact - this is for, e.g. extinguishers and sprays. The difference is that reagent is not directly on the mob's skin - it might just be on their clothing.
|
||||
/datum/reagent/proc/touch_mob(var/mob/M, var/amount)
|
||||
|
||||
Reference in New Issue
Block a user