fixed a bug where typedescription_t searching could crash

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40715
This commit is contained in:
David Anderson 2007-04-27 01:51:34 +00:00
parent 053029af87
commit d7cf6dbba9

View File

@ -118,6 +118,10 @@ typedescription_t *UTIL_FindInDataMap(datamap_t *pMap, const char *name)
{
for (int i=0; i<pMap->dataNumFields; i++)
{
if (pMap->dataDesc[i].fieldName == NULL)
{
continue;
}
if (strcmp(name, pMap->dataDesc[i].fieldName) == 0)
{
return &(pMap->dataDesc[i]);