Fixes numbered contents grouping different things

Also fixes a runtime from the black powder fix. Whoops!
This commit is contained in:
Krausus
2015-05-11 08:53:14 -04:00
parent 264244630c
commit 65ce3e4c20
2 changed files with 3 additions and 2 deletions
@@ -207,7 +207,7 @@
for(var/obj/item/I in contents)
var/found = 0
for(var/datum/numbered_display/ND in numbered_contents)
if(ND.sample_object.type == I.type)
if(ND.sample_object.type == I.type && ND.sample_object.name == I.name)
ND.number++
found = 1
break