summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/g_buildable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 99f27960..7909c7de 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1342,7 +1342,7 @@ pain function for Alien Hive
*/
void AHive_Pain( gentity_t *self, gentity_t *attacker, int damage )
{
- if( self->powered && !self->active )
+ if( self->spawned && self->powered && !self->active )
AHive_CheckTarget( self, attacker );
G_SetBuildableAnim( self, BANIM_PAIN1, qfalse );