Fixed a crash.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1992 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
30d5648279
commit
02c5931431
1 changed files with 5 additions and 2 deletions
|
@ -579,8 +579,11 @@ void PIN_SaveMessages(void)
|
|||
void PIN_DeleteOldestMessage(void)
|
||||
{
|
||||
pinnedmessages_t *old = pinned;
|
||||
pinned = pinned->next;
|
||||
Z_Free(old);
|
||||
if (old)
|
||||
{
|
||||
pinned = pinned->next;
|
||||
Z_Free(old);
|
||||
}
|
||||
}
|
||||
void PIN_MakeMessage(char *from, char *msg)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue