1.1 --- a/extensions/sdktools/output.cpp Mon Jul 26 19:26:32 2010 -0400
1.2 +++ b/extensions/sdktools/output.cpp Tue Jul 27 17:32:32 2010 -0500
1.3 @@ -330,7 +330,7 @@
1.4 {
1.5 if (pMap->dataDesc[i].flags & FTYPEDESC_OUTPUT)
1.6 {
1.7 - if ((char *)pCaller + pMap->dataDesc[i].fieldOffset[0] == pOutput)
1.8 + if ((char *)pCaller + GetTypeDescOffs(&pMap->dataDesc[i]) == pOutput)
1.9 {
1.10 return pMap->dataDesc[i].externalName;
1.11 }
1.12 @@ -349,7 +349,7 @@
1.13 {
1.14 datamap_t *pMap = gamehelpers->GetDataMap(pEntity);
1.15 typedescription_t *pDesc = gamehelpers->FindInDataMap(pMap, "m_iClassname");
1.16 - offset = pDesc->fieldOffset[TD_OFFSET_NORMAL];
1.17 + offset = GetTypeDescOffs(pDesc);
1.18 }
1.19
1.20 return *(const char **)(((unsigned char *)pEntity) + offset);