Merge pull request #36233 from AnturK/nulllove
Adds explicit check for numberless backpack contents in outfits.
This commit is contained in:
committed by
CitadelStationBot
parent
7bb63b0a21
commit
cc691e16a1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user