Permalink
Browse files

spearmint: Fix Windows dedicated server crash

  • Loading branch information...
zturtleman committed Aug 21, 2017
1 parent 86ccd40 commit 914ef509fc24e591586996bcbcf847f461254713
Showing with 2 additions and 1 deletion.
  1. +2 −1 code/sys/con_win32.c
View
@@ -322,7 +322,8 @@ void CON_Init( void )
qconsole_attrib = info.wAttributes;
qconsole_backgroundAttrib = qconsole_attrib & (BACKGROUND_BLUE|BACKGROUND_GREEN|BACKGROUND_RED|BACKGROUND_INTENSITY);
Com_sprintf( consoleTitle, sizeof (consoleTitle), "%s Dedicated Server Console", com_productName->string );
// ZTM: FIXME: com_productName isn't initialized or set to game title yet.
Com_sprintf( consoleTitle, sizeof (consoleTitle), "%s Dedicated Server Console", com_productName ? com_productName->string : PRODUCT_NAME );
SetConsoleTitle( consoleTitle );
// initialize history

0 comments on commit 914ef50

Please sign in to comment.