-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix crash in CvHandicapInfo::getYieldAmountForDifficultyBonus with uninitialized era When calculating difficulty bonuses during city initialization, getCurrentEra() can return -1 (NO_ERA) if no teams have been initialized yet. Add validation to use era 0 (Ancient) as fallback to prevent crash. * Fix crash in CvGame::initSpyThreshold() Added safety checks for divide-by-zero and debug logging. The crash was caused by unprotected division in spy threshold calculation. Modified to ensure minimum values for number of civs and added MOD_CORE_DEBUGGING output to track configuration values. * Change MOD_COMMUNITY_PATCH check MOD_COMMUNITY_PATCH should always be true * remove MOD_CORE_DEBUGGING
- Loading branch information
1 parent
f450e1a
commit 5efd943
Showing
2 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters