summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 4ad07392..e67fcced 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1682,7 +1682,7 @@ void Cmd_Destroy_f( gentity_t *ent )
}
// Cancel deconstruction
- if( g_markDeconstruct.integer && traceEnt->deconstruct )
+ if( deconstruct && g_markDeconstruct.integer && traceEnt->deconstruct )
{
traceEnt->deconstruct = qfalse;
return;