[#bugs] bug: In `QudPregenModuleWindow.GetBreadCrumb()`’s `IconPath` argument the null c...

Issue #12343 resolved
Freehold Games Bot Account created an issue

Marked for crossposting by: books

Message (jump):

<books> bug: In QudPregenModuleWindow.GetBreadCrumb()’s IconPath argument the null coalescing operator has a higher precedence than the conditional operator so it functions undesirably (should be something like ((module?.data?.Pregen != null && module?.pregens.ContainsKey(module?.data?.Pregen) == true) ? module?.pregens[module?.data?.Pregen]?.Tile : UIBreadcrumb.DEFAULT_ICON) ?? UIBreadcrumb.DEFAULT_ICON around the entire conditional

Comments (2)

  1. Log in to comment