summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_buildable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 2b9fa394..a46477b6 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -2434,7 +2434,6 @@ void G_BuildableThink( gentity_t *ent, int msec )
int bHealth = BG_FindHealthForBuildable( ent->s.modelindex );
int bRegen = BG_FindRegenRateForBuildable( ent->s.modelindex );
int bTime = BG_FindBuildTimeForBuildable( ent->s.modelindex );
- int i;
//pack health, power and dcc
@@ -2696,7 +2695,10 @@ static itemBuildError_t G_SufficientBPAvailable( buildable_t buildable,
spawn = BA_H_SPAWN;
}
else
+ {
Com_Error( ERR_FATAL, "team is %d\n", team );
+ return IBE_NONE;
+ }
// Simple non-marking case
if( !g_markDeconstruct.integer )