Resolved #2444 - buying buildings no longer crashes

This commit is contained in:
Yair Morgenstern 2020-04-17 11:33:57 +03:00
parent cb87ae94a8
commit de1c6872fe

View file

@ -319,8 +319,6 @@ class ConstructionsTable(val cityScreen: CityScreen) : Table(CameraStageBaseScre
if (isSelectedQueueEntry()) {
// currentConstruction is removed from the queue by purchaseConstruction
// to avoid conflicts with NextTurnAutomation
if (!constructionIsCurrentConstruction && cityConstructions.constructionQueue[selectedQueueEntry] == construction.name)
cityConstructions.removeFromQueue(selectedQueueEntry,false)
selectedQueueEntry = -2
cityScreen.selectedConstruction = null
}