Use Q_strcasecmp instead of Q_stricmp().

This should be be noop but looks safer. Reported by maraakate in yquake2
issue #160.
This commit is contained in:
Yamagi Burmeister 2016-12-17 10:58:50 +01:00
parent 48a06ef31e
commit 4285702803

View file

@ -395,7 +395,7 @@ ED_ParseField(const char *key, const char *value, edict_t *ent)
for (f = fields; f->name; f++)
{
if (!(f->flags & FFL_NOSPAWN) && !Q_stricmp(f->name, key))
if (!(f->flags & FFL_NOSPAWN) && !Q_strcasecmp(f->name, (char *)key))
{
/* found it */
if (f->flags & FFL_SPAWNTEMP)