core/smn_entities.cpp
changeset 1900 457329ae65bd
parent 1884 9ca6aacb1400
child 1947 e73a1e51833b
     1.1 --- a/core/smn_entities.cpp	Wed Feb 27 13:46:41 2008 +0000
     1.2 +++ b/core/smn_entities.cpp	Wed Feb 27 13:49:57 2008 +0000
     1.3 @@ -796,6 +796,8 @@
     1.4  				}
     1.5  				break;
     1.6  			}
     1.7 +		case FIELD_MODELNAME:
     1.8 +		case FIELD_SOUNDNAME:
     1.9  		case FIELD_STRING:
    1.10  			{
    1.11  				*pSize = sizeof(string_t);
    1.12 @@ -1614,7 +1616,9 @@
    1.13  			FIND_PROP_DATA(td);
    1.14  
    1.15  			if (td->fieldType != FIELD_CHARACTER
    1.16 -				&& td->fieldType != FIELD_STRING)
    1.17 +				&& td->fieldType != FIELD_STRING
    1.18 +				&& td->fieldType != FIELD_MODELNAME 
    1.19 +				&& td->fieldType != FIELD_SOUNDNAME)
    1.20  			{
    1.21  				return pContext->ThrowNativeError("Data field %s is not a string (%d != %d)", 
    1.22  					prop,
    1.23 @@ -1622,7 +1626,7 @@
    1.24  					FIELD_CHARACTER);
    1.25  			}
    1.26  
    1.27 -			bIsStringIndex = (td->fieldType == FIELD_STRING);
    1.28 +			bIsStringIndex = (td->fieldType != FIELD_CHARACTER);
    1.29  
    1.30  			offset = td->fieldOffset[TD_OFFSET_NORMAL];
    1.31  			break;