mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 07:17:50 +07:00
Fixed crash when getting a spy and expanding a city simultaneously (#7849)
This commit is contained in:
@ -127,7 +127,9 @@ class EspionageManager : IsPartOfGameInfoSerialization {
|
||||
|
||||
fun addSpy(): String {
|
||||
val spyName = getSpyName()
|
||||
spyList.add(Spy(spyName))
|
||||
val newSpy = Spy(spyName)
|
||||
newSpy.setTransients(civInfo)
|
||||
spyList.add(newSpy)
|
||||
++spyCount
|
||||
return spyName
|
||||
}
|
||||
|
Reference in New Issue
Block a user