Skip to content

Commit

Permalink
Fix #11205
Browse files Browse the repository at this point in the history
  • Loading branch information
axatin authored and RecursiveVision committed Aug 15, 2024
1 parent 28a2a86 commit 1fd622c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions CvGameCoreDLL_Expansion2/CvPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27242,11 +27242,7 @@ void CvPlayer::doInstantYield(InstantYieldType iType, bool bCityFaith, GreatPers
}
if(pCity == NULL)
{
CvCity* pCapitalCity = getCapitalCity();
if(pCapitalCity != NULL)
{
pNotifications->Add((NotificationTypes)FString::Hash("NOTIFICATION_INSTANT_YIELD"), localizedText.toUTF8(), strSummary.toUTF8(), pCapitalCity->getX(), pCapitalCity->getY(), pCapitalCity->GetID());
}
pNotifications->Add((NotificationTypes)FString::Hash("NOTIFICATION_INSTANT_YIELD"), localizedText.toUTF8(), strSummary.toUTF8(), -1, -1 ,-1);
}
else
{
Expand Down

0 comments on commit 1fd622c

Please sign in to comment.