Skip to content

Commit

Permalink
Use "else if" in power refund
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Dec 14, 2024
1 parent 1a69808 commit 7b376a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ static void refundFactoryBuildPower(STRUCTURE *psBuilding)
addPower(psBuilding->player, calcTemplatePower(psFactory->psSubjectObsolete.get()));
}
}
if (psFactory->psSubject)
else if (psFactory->psSubject)
{
if (psFactory->buildPointsRemaining < (int)calcTemplateBuild(psFactory->psSubject))
{
Expand Down

0 comments on commit 7b376a1

Please sign in to comment.