搜索结果: *

  1. Resolved Crash when proposing peace 1.4.2

    Happened to me as well. I've found out it's a bug in MakePeaceDecisionVM and DeclareWarDecisionItemVM classes. Overridden InitValues() method is called from DecisionItemBaseVM base class, which tries to access TargetFaction property, but cannot because derived class constructor has not finished execution and therefore _declareWarDecision is null. This was a change from e1.4.1 to e1.4.2. For example in MakePeaceDecisionVM:

    e1.4.1
    C#:
    public IFaction TargetFaction
    {
        get => (_decision as MakePeaceKingdomDecision).FactionToMakePeaceWith;
    }

    e1.4.2
    C#:
    public IFaction TargetFaction
    {
        get => _declareWarDecision.FactionToMakePeaceWith;
    }

    Hope this helps.
后退
顶部 底部