Merge pull request #5862 from Citadel-Station-13/upstream-merge-36233

[MIRROR] Adds explicit check for numberless backpack contents in outfits.
This commit is contained in:
LetterJay
2018-03-09 04:52:46 -06:00
committed by GitHub
+2
View File
@@ -85,6 +85,8 @@
if(backpack_contents)
for(var/path in backpack_contents)
var/number = backpack_contents[path]
if(!isnum(number))//Default to 1
number = 1
for(var/i=0,i<number,i++)
H.equip_to_slot_or_del(new path(H),slot_in_backpack)