mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-16 18:59:15 +07:00
Fixed exploit in the foreign city religion info table (#8967)
This commit is contained in:
@ -3,6 +3,7 @@ package com.unciv.ui.screens.cityscreen
|
|||||||
import com.badlogic.gdx.graphics.Color
|
import com.badlogic.gdx.graphics.Color
|
||||||
import com.badlogic.gdx.scenes.scene2d.ui.Table
|
import com.badlogic.gdx.scenes.scene2d.ui.Table
|
||||||
import com.unciv.Constants
|
import com.unciv.Constants
|
||||||
|
import com.unciv.GUI
|
||||||
import com.unciv.UncivGame
|
import com.unciv.UncivGame
|
||||||
import com.unciv.logic.city.managers.CityReligionManager
|
import com.unciv.logic.city.managers.CityReligionManager
|
||||||
import com.unciv.models.Religion
|
import com.unciv.models.Religion
|
||||||
@ -84,7 +85,7 @@ class CityReligionInfoTable(
|
|||||||
if (religion == null) return icon
|
if (religion == null) return icon
|
||||||
icon.onClick {
|
icon.onClick {
|
||||||
val newScreen = if (religion == iconName) {
|
val newScreen = if (religion == iconName) {
|
||||||
EmpireOverviewScreen(civInfo, EmpireOverviewCategories.Religion, religion)
|
EmpireOverviewScreen(GUI.getViewingPlayer(), EmpireOverviewCategories.Religion, religion)
|
||||||
} else {
|
} else {
|
||||||
CivilopediaScreen(gameInfo.ruleset, CivilopediaCategories.Belief, religion)
|
CivilopediaScreen(gameInfo.ruleset, CivilopediaCategories.Belief, religion)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user