summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2020-03-08 00:16:40 +0000
committerIronClawTrem <louie.nutman@gmail.com>2020-03-08 00:16:40 +0000
commit46a25a69f5b78426654d0365cd38571fb3f36b4f (patch)
tree437c34df9076eff9b4c6de9e93d4acc7b0787495
parentca8a08351aeca3a7e27196941bae54cb00a57f72 (diff)
fix segfault in !practise
-rw-r--r--src/game/g_admin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index da6ee30..923984f 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -8715,7 +8715,8 @@ qboolean G_admin_practise( gentity_t *ent, int skiparg )
return qfalse;
}
- ent->flags ^= FL_NOTARGET;
+ if( ent )
+ ent->flags ^= FL_NOTARGET;
AP( va( "print \"^3!practise: ^7practise mode was %s by %s\n\"",
arg,