From 9bc306365cfb397ba142a4c6cba2ba57fa0d014b Mon Sep 17 00:00:00 2001 From: antropod Date: Tue, 19 Sep 2023 18:18:09 +0600 Subject: [PATCH] Fix mafia achievements (#78420) ## About The Pull Request Fixes #78415 Have not tested properly, because you need 12 accounts to do that. (Admin start game and forced games do not award achievements) ## Why It's Good For The Game ## Changelog :cl: fix: Fixed Mafia achievements /:cl: --------- Co-authored-by: AnturK --- code/modules/mafia/controller.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mafia/controller.dm b/code/modules/mafia/controller.dm index a0e5b26b5d9..1916a65f7b1 100644 --- a/code/modules/mafia/controller.dm +++ b/code/modules/mafia/controller.dm @@ -369,7 +369,7 @@ GLOBAL_LIST_INIT(mafia_role_by_alignment, setup_mafia_role_by_alignment()) * * role: mafia_role datum to reward. */ /datum/mafia_controller/proc/award_role(award, datum/mafia_role/rewarded) - var/client/role_client = GLOB.directory[rewarded.body.client] + var/client/role_client = rewarded.body.client role_client?.give_award(award, rewarded.body) /**