Jump to content

Are the game's DLL not compiled with optimization flags on?


Maegfaer

Recommended Posts

Or is the C# compiler just not very good? I encountered this in a decompiled DLL while modding and it seems this is a clear optimization opportunity:

if (partyToReceiveLoot.IsMobile)
{
    TakePrisonerAction.Apply(partyToReceiveLoot, troopRosterElement3.Character.HeroObject);
}
    else
{
    TakePrisonerAction.Apply(partyToReceiveLoot, troopRosterElement3.Character.HeroObject);
}

DLL: Taleworlds.CampaignSystem.dll
Method: LootCollector.GiveShareOfLootToParty

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...