Skip to content

Commit

Permalink
Fixing 'optimize' button desync
Browse files Browse the repository at this point in the history
  • Loading branch information
seroperson committed Apr 27, 2023
1 parent 6403838 commit f0832f0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CvGameCoreDLL_Expansion2/CvCultureClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3109,6 +3109,17 @@ void CvPlayerCulture::MoveWorkIntoSlot (CvGreatWorkInMyEmpire kWork, int iCityID
{
pToCity->GetCityBuildings()->SetBuildingGreatWork(eToBuildingClass, iSlot, kWork.m_iGreatWorkIndex);
pFromCity->GetCityBuildings()->SetBuildingGreatWork(eFromBuildingClass, iFromSlot, iFromWork);

gDLL->sendMoveGreatWorks(
m_pPlayer->GetID(),
pToCity->GetID(),
eToBuildingClass,
iSlot,
pFromCity->GetID(),
eFromBuildingClass,
iFromSlot
);

#if defined(MOD_BALANCE_CORE)
return true;
#endif
Expand Down

0 comments on commit f0832f0

Please sign in to comment.