Skip to content

Commit

Permalink
Tweak reachMaxCore warning comment
Browse files Browse the repository at this point in the history
  • Loading branch information
d0sboots authored Jan 5, 2025
1 parent 4e7b8cb commit 7bb42ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Locations/ui/CoresButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function CoresButton(props: IProps): React.ReactElement {
const cost = Player.getUpgradeHomeCoresCost();

function buy(): void {
// Do NOT reuse reachMaxCore
// Do NOT reuse reachMaxCore - it is cached (and possibly stale) at button creation time
if (Player.bitNodeOptions.restrictHomePCUpgrade || homeComputer.cpuCores >= 8) {
return;
}
Expand Down

0 comments on commit 7bb42ce

Please sign in to comment.