mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
Fixed crash when AI is picking religions (#5421)
This commit is contained in:
@ -53,6 +53,9 @@ class Religion() : INamed {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun getBeliefs(beliefType: BeliefType): Sequence<Belief> {
|
fun getBeliefs(beliefType: BeliefType): Sequence<Belief> {
|
||||||
|
if (beliefType == BeliefType.Any)
|
||||||
|
return mapToExistingBeliefs((founderBeliefs + followerBeliefs).toHashSet()).asSequence()
|
||||||
|
|
||||||
val beliefs =
|
val beliefs =
|
||||||
when (beliefType) {
|
when (beliefType) {
|
||||||
BeliefType.Pantheon -> followerBeliefs
|
BeliefType.Pantheon -> followerBeliefs
|
||||||
|
Reference in New Issue
Block a user