Skip to content

Commit

Permalink
Fix build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Jul 5, 2024
1 parent 85aba8c commit 28ae7d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CvGameCoreDLL_Expansion2/CvUnit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20919,6 +20919,11 @@ int CvUnit::getDamage() const
int CvUnit::setDamage(int iNewValue, PlayerTypes ePlayer, float fAdditionalTextDelay, const CvString* pAppendText, bool bDontShow)
{
VALIDATE_OBJECT

// Avoid a build warning for unreferenced formal parameter. azum4roll fix this pls
if (fAdditionalTextDelay > 0.0f)
fAdditionalTextDelay = 0.0f;

int iOldValue = getDamage();

m_iDamage = range(iNewValue, 0, GetMaxHitPoints());
Expand Down

0 comments on commit 28ae7d5

Please sign in to comment.