From 47b6c2608c51e3db8fc9be902ccb041332b74894 Mon Sep 17 00:00:00 2001 From: RndName Date: Sat, 7 May 2022 18:24:12 +0200 Subject: [PATCH] Fix destroyed buildings generate income --- game/income.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/income.py b/game/income.py index 6112fa68..729ecd7a 100644 --- a/game/income.py +++ b/game/income.py @@ -41,7 +41,7 @@ class Income: BuildingIncome( tgo.obj_name, tgo.category, - len(list(tgo.statics)), + sum(1 for b in tgo.statics if b.alive), REWARDS[tgo.category], ) )