engine: client: console: do not save history if nothing was executed in console
This commit is contained in:
parent
710b234493
commit
9f92e2a1f7
1 changed files with 4 additions and 0 deletions
|
@ -1481,6 +1481,10 @@ static void Con_SaveHistory( con_history_t *self )
|
||||||
int historyStart = self->next - CON_HISTORY, i;
|
int historyStart = self->next - CON_HISTORY, i;
|
||||||
file_t *f;
|
file_t *f;
|
||||||
|
|
||||||
|
// do not save history if nothing was executed
|
||||||
|
if( self->next == 0 )
|
||||||
|
return;
|
||||||
|
|
||||||
if( historyStart < 0 )
|
if( historyStart < 0 )
|
||||||
historyStart = 0;
|
historyStart = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue