Print a warning message when we try to make sense of an invalid/corrupt infostring.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5708 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2020-06-20 09:19:18 +00:00
parent dfed212698
commit dfc44e5d36
1 changed files with 3 additions and 0 deletions

View File

@ -6596,6 +6596,9 @@ void InfoBuf_FromString(infobuf_t *info, const char *infostring, qboolean append
{
if (!append)
InfoBuf_Clear(info, true);
if (*infostring && *infostring != '\\')
Con_Printf("InfoBuf_FromString: invalid infostring \"%s\"\n", infostring);
//all keys must start with a backslash
while (*infostring++ == '\\')
{