mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-03 23:08:16 +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> {
|
||||
if (beliefType == BeliefType.Any)
|
||||
return mapToExistingBeliefs((founderBeliefs + followerBeliefs).toHashSet()).asSequence()
|
||||
|
||||
val beliefs =
|
||||
when (beliefType) {
|
||||
BeliefType.Pantheon -> followerBeliefs
|
||||
|
Reference in New Issue
Block a user