Add proc/crash_with, fix two incorrect qdel calls

This commit is contained in:
GinjaNinja32
2015-09-23 13:29:54 +01:00
parent d0310837b2
commit 8ed4faf7b2
4 changed files with 8 additions and 7 deletions

View File

@@ -91,6 +91,7 @@ var/list/delayed_garbage = list()
return
if(!istype(A))
warning("qdel() passed object of type [A.type]. qdel() can only handle /datum types.")
crash_with("qdel() passed object of type [A.type]. qdel() can only handle /datum types.")
del(A)
if(garbage_collector)
garbage_collector.dels++