mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 22:37:02 -04: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
|
@Transient
|
||||||
private val followers: Counter<String> = Counter()
|
private val followers: Counter<String> = Counter()
|
||||||
|
|
||||||
|
@delegate:Transient
|
||||||
private val pressureFromAdjacentCities: Int by lazy {
|
private val pressureFromAdjacentCities: Int by lazy {
|
||||||
when (cityInfo.civInfo.gameInfo.gameParameters.gameSpeed) {
|
when (cityInfo.civInfo.gameInfo.gameParameters.gameSpeed) {
|
||||||
GameSpeed.Quick -> 9
|
GameSpeed.Quick -> 9
|
||||||
|
@ -62,7 +62,7 @@ class GameSettings {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun addCompletedTutorialTask(tutorialTask: String) {
|
fun addCompletedTutorialTask(tutorialTask: String) {
|
||||||
tutorialTasksCompleted.add(tutorialTask)
|
if (tutorialTasksCompleted.add(tutorialTask))
|
||||||
save()
|
save()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user