potential fix for custom trader issue

This commit is contained in:
Dev 2023-08-03 15:46:50 +01:00
parent beb7c5069b
commit dbf9955272

View File

@ -651,7 +651,7 @@ export class GameController
if (!traderAssorts.loyal_level_items[assortKey]) if (!traderAssorts.loyal_level_items[assortKey])
{ {
// reverse lookup of enum key by value // reverse lookup of enum key by value
this.logger.debug(this.localisationService.getText("assort-missing_quest_assort_unlock", {traderName: Object.keys(Traders)[Object.values(Traders).indexOf(traderId)], questName: quests[questKey].QuestName})); this.logger.debug(this.localisationService.getText("assort-missing_quest_assort_unlock", {traderName: Object.keys(Traders)[Object.values(Traders).indexOf(traderId)], questName: quests[questKey]?.QuestName ?? "UNKNOWN"}));
} }
} }
} }