Skip to content

Commit

Permalink
Fix crash when stealing land from barbarian city (#11419)
Browse files Browse the repository at this point in the history
  • Loading branch information
KungCheops authored Dec 11, 2024
1 parent 6d03abe commit 8f76c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CvGameCoreDLL_Expansion2/CvUnit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12640,7 +12640,7 @@ void CvUnit::PerformCultureBomb(int iRadius)
}

// If the players are at war, this counts for war value!
if (GET_PLAYER(getOwner()).IsAtWarWith(ePlotOwner))
if (GET_PLAYER(getOwner()).IsAtWarWith(ePlotOwner) && !GET_PLAYER(ePlotOwner).isBarbarian())
{
GET_PLAYER(getOwner()).ApplyWarDamage(ePlotOwner, iTileValue);

Expand Down

0 comments on commit 8f76c1c

Please sign in to comment.