mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-04 07:58:18 +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 {
|
fun addSpy(): String {
|
||||||
val spyName = getSpyName()
|
val spyName = getSpyName()
|
||||||
spyList.add(Spy(spyName))
|
val newSpy = Spy(spyName)
|
||||||
|
newSpy.setTransients(civInfo)
|
||||||
|
spyList.add(newSpy)
|
||||||
++spyCount
|
++spyCount
|
||||||
return spyName
|
return spyName
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user