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:
Spoike 2006-02-22 23:30:38 +00:00
parent 30d5648279
commit 02c5931431

View file

@ -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)
{