mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
Fix DOS attack perpetrated by CityInfoReligionManager on Json Serializer (#4870)
Fixes #4867
This commit is contained in:
parent
c1acda6c6b
commit
df31fb2f05
@ -19,6 +19,7 @@ class CityInfoReligionManager {
|
||||
@Transient
|
||||
private val followers: Counter<String> = Counter()
|
||||
|
||||
@delegate:Transient
|
||||
private val pressureFromAdjacentCities: Int by lazy {
|
||||
when (cityInfo.civInfo.gameInfo.gameParameters.gameSpeed) {
|
||||
GameSpeed.Quick -> 9
|
||||
|
@ -62,7 +62,7 @@ class GameSettings {
|
||||
}
|
||||
|
||||
fun addCompletedTutorialTask(tutorialTask: String) {
|
||||
tutorialTasksCompleted.add(tutorialTask)
|
||||
save()
|
||||
if (tutorialTasksCompleted.add(tutorialTask))
|
||||
save()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user