mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 23:37:31 +07:00
Fixed crash when getting a spy and expanding a city simultaneously (#7849)
This commit is contained in:
parent
14d253fe24
commit
e2187a268f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user