mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 03:23:17 -04:00
Fixed techs showing "0 turns" and yet not being researched
This commit is contained in:
parent
d6258c06d9
commit
c782af55ae
@ -280,8 +280,7 @@ class TechManager : IsPartOfGameInfoSerialization {
|
|||||||
val scienceSpent = researchOfTech(currentTechnology) + realOverflow
|
val scienceSpent = researchOfTech(currentTechnology) + realOverflow
|
||||||
if (scienceSpent >= costOfTech(currentTechnology)) {
|
if (scienceSpent >= costOfTech(currentTechnology)) {
|
||||||
overflowScience = 0
|
overflowScience = 0
|
||||||
if (realOverflow != 0)
|
addScience(realOverflow)
|
||||||
addScience(realOverflow)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user