Fixed missing 'obj_id' variable

replaced 'obj_id' calls with 'tostring(args.objid)'
master
icecool 6 years ago
parent b851921ea9
commit b5b9b01aa0

@ -450,8 +450,8 @@ function TRIGGER_AddPortalInvItem( name, line, args )
return return
end end
table.insert(PortalInventory, 1, tostring(args.objid)) table.insert(PortalInventory, 1, tostring(args.objid))
dnote(("%s TRIGGER_AddPortalItem(%s) called. Added %s to PortalInventory table."):format(Prepend, obj_id, obj_id)) dnote(("%s TRIGGER_AddPortalItem(%s) called. Added %s to PortalInventory table."):format(Prepend, tostring(args.objid), tostring(args.objid)))
cnote(("%s Portal(%s) was added Portal Inventory."):format(Prepend, obj_id)) cnote(("%s Portal(%s) was added Portal Inventory."):format(Prepend, tostring(args.objid)))
end end
function TRIGGER_AddInvPortalListItem( name, line, args ) function TRIGGER_AddInvPortalListItem( name, line, args )
if not (args.objid) then if not (args.objid) then

Loading…
Cancel
Save