From 8520e54484c6804e10fcd8bb07982172fab3e392 Mon Sep 17 00:00:00 2001 From: harryob Date: Thu, 1 Feb 2024 15:30:12 +0000 Subject: [PATCH] fixes medal saving (#5607) posthumous medals would never save because the ckey is nulled immediately on mob changes. this also applies to medals given when you're disconnected for whatever reason :cl: fix: medals should save more reliably /:cl: --- code/datums/statistics/entities/medal_stats.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/statistics/entities/medal_stats.dm b/code/datums/statistics/entities/medal_stats.dm index 8a428e2d3cf4..c5684e3cd9a4 100644 --- a/code/datums/statistics/entities/medal_stats.dm +++ b/code/datums/statistics/entities/medal_stats.dm @@ -57,7 +57,7 @@ return var/datum/entity/statistic/medal/new_medal = DB_ENTITY(/datum/entity/statistic/medal) - var/datum/entity/player/player_entity = get_player_from_key(new_recipient.ckey) + var/datum/entity/player/player_entity = get_player_from_key(new_recipient.persistent_ckey) if(player_entity) new_medal.player_id = player_entity.id