summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/g_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index e5e3a6fe..a8ff8c61 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -959,10 +959,10 @@ void G_CalculateBuildPoints( void )
if( buildable != BA_NONE )
{
- if( buildable == BA_H_REACTOR && ent->health > 0 )
+ if( buildable == BA_H_REACTOR && ent->spawned && ent->health > 0 )
level.reactorPresent = qtrue;
- if( buildable == BA_A_OVERMIND && ent->health > 0 )
+ if( buildable == BA_A_OVERMIND && ent->spawned && ent->health > 0 )
level.overmindPresent = qtrue;
if( BG_FindTeamForBuildable( buildable ) == BIT_HUMANS )