diff --git a/code/game/objects/items/weapons/cards_ids.dm b/code/game/objects/items/weapons/cards_ids.dm index a6fadb5b160..813b74fddf2 100644 --- a/code/game/objects/items/weapons/cards_ids.dm +++ b/code/game/objects/items/weapons/cards_ids.dm @@ -630,8 +630,7 @@ assignment = "Captain" /obj/item/card/id/captains_spare/New() - var/datum/job/captain/J = new/datum/job/captain - access = J.get_access() + access = get_all_accesses() ..() /obj/item/card/id/admin diff --git a/code/modules/mob/living/simple_animal/bot/!bot.dm b/code/modules/mob/living/simple_animal/bot/!bot.dm index 284f680dfe2..cf9c15ffaa6 100644 --- a/code/modules/mob/living/simple_animal/bot/!bot.dm +++ b/code/modules/mob/living/simple_animal/bot/!bot.dm @@ -638,8 +638,7 @@ Pass a positive integer as an argument to override a bot's default speed. bot_reset() // Reset a bot before setting it to call mode. var/area/end_area = get_area(waypoint) - var/datum/job/captain/All = new/datum/job/captain - access_card.access = All.get_access() // Give the bot temporary all access + access_card.access = get_all_accesses() // Give the bot temporary all access set_path(get_path_to(src, waypoint, 200, id = access_card)) calling_ai = caller // Link the AI to the bot!