Runtime fixes (#11419)

This commit is contained in:
Cameron Lennox
2025-08-15 05:11:58 -04:00
committed by GitHub
parent 104d2e8727
commit 6a631f937e
3 changed files with 14 additions and 8 deletions

View File

@@ -4,6 +4,10 @@
var/datum/paiCandidate/candidate
/datum/category_item/player_setup_item/general/basic_antagonism/New()
. = ..()
candidate = new()
/datum/category_item/player_setup_item/general/basic_antagonism/load_character(list/save_data)
pref.exploit_record = save_data["exploit_record"]
pref.antag_faction = save_data["antag_faction"]
@@ -17,6 +21,7 @@
/datum/category_item/player_setup_item/general/basic_antagonism/load_preferences(datum/json_savefile/savefile)
if(!candidate)
candidate = new()
var/preference_mob = preference_mob()
if(!preference_mob)// No preference mob - this happens when we're called from client/New() before it calls ..() (via datum/preferences/New())
spawn()