1.1 --- a/extensions/sdktools/output.cpp Mon Aug 12 00:45:29 2013 +0100
1.2 +++ b/extensions/sdktools/output.cpp Mon Aug 12 00:54:21 2013 +0100
1.3 @@ -356,8 +356,13 @@
1.4 if (offset == -1)
1.5 {
1.6 datamap_t *pMap = gamehelpers->GetDataMap(pEntity);
1.7 - typedescription_t *pDesc = gamehelpers->FindInDataMap(pMap, "m_iClassname");
1.8 - offset = GetTypeDescOffs(pDesc);
1.9 + sm_datatable_info_t info;
1.10 + if (!gamehelpers->FindDataMapInfo(pMap, "m_iClassname", &info))
1.11 + {
1.12 + return NULL;
1.13 + }
1.14 +
1.15 + offset = info.actual_offset;
1.16 }
1.17
1.18 return *(const char **)(((unsigned char *)pEntity) + offset);