summaryrefslogtreecommitdiff
path: root/src/sv_game.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sv_game.c')
-rw-r--r--src/sv_game.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sv_game.c b/src/sv_game.c
index e8bd633..d07533c 100644
--- a/src/sv_game.c
+++ b/src/sv_game.c
@@ -342,6 +342,11 @@ static void PF_configstring( int index, const char *val ) {
if( index < 0 || index >= MAX_CONFIGSTRINGS )
Com_Error( ERR_DROP, "%s: bad index: %d", __func__, index );
+ if( sv.state == ss_dead ) {
+ Com_WPrintf( "%s: not yet initialized\n", __func__ );
+ return;
+ }
+
if( !val )
val = "";