From ca3913cd88d6ff0f81557609bf21af41a5b2bb43 Mon Sep 17 00:00:00 2001 From: mittorn Date: Mon, 25 Mar 2019 21:23:12 +0700 Subject: [PATCH] fix windows build --- engine/client/console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/client/console.c b/engine/client/console.c index 882e6816..7420d23e 100644 --- a/engine/client/console.c +++ b/engine/client/console.c @@ -1091,9 +1091,10 @@ void Con_LoadHistory( void ) if( *pFile == '\n') { int len = pFile - pLine + 1; + field_t *f; if( len > 255 ) len = 255; Con_ClearField( &con.historyLines[con.nextHistoryLine] ); - field_t *f = &con.historyLines[con.nextHistoryLine % CON_HISTORY]; + f = &con.historyLines[con.nextHistoryLine % CON_HISTORY]; f->widthInChars = con.linewidth; f->cursor = len - 1; Q_strncpy( f->buffer, pLine, len);