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