mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-07 09:01:57 +00:00
- Fixed GCC warnings with new history code.
This commit is contained in:
parent
c69394fa40
commit
f123da9385
1 changed files with 2 additions and 2 deletions
|
@ -613,7 +613,7 @@ void C_DeinitConsole ()
|
||||||
while (hist != NULL)
|
while (hist != NULL)
|
||||||
{
|
{
|
||||||
History *next = hist->Newer;
|
History *next = hist->Newer;
|
||||||
free (hist);
|
delete hist;
|
||||||
hist = next;
|
hist = next;
|
||||||
}
|
}
|
||||||
HistTail = HistHead = HistPos = NULL;
|
HistTail = HistHead = HistPos = NULL;
|
||||||
|
@ -1659,7 +1659,7 @@ CCMD (history)
|
||||||
|
|
||||||
while (hist)
|
while (hist)
|
||||||
{
|
{
|
||||||
Printf (" %s\n", hist->String);
|
Printf (" %s\n", hist->String.GetChars());
|
||||||
hist = hist->Newer;
|
hist = hist->Newer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue