mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
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:
parent
dfed212698
commit
dfc44e5d36
1 changed files with 3 additions and 0 deletions
|
@ -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++ == '\\')
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue