1.1 --- a/extensions/sdktools/vnatives.cpp Mon Aug 12 00:45:29 2013 +0100
1.2 +++ b/extensions/sdktools/vnatives.cpp Mon Aug 12 00:54:21 2013 +0100
1.3 @@ -548,10 +548,10 @@
1.4 if (frag_prop)
1.5 {
1.6 datamap_t *pMap = gamehelpers->GetDataMap(pEntity);
1.7 - typedescription_t *pType = gamehelpers->FindInDataMap(pMap, frag_prop);
1.8 - if (pType != NULL)
1.9 + sm_datatable_info_t info;
1.10 + if (gamehelpers->FindDataMapInfo(pMap, frag_prop, &info))
1.11 {
1.12 - s_frag_offs = GetTypeDescOffs(pType);
1.13 + s_frag_offs = info.actual_offset;
1.14 }
1.15 }
1.16 if (!s_frag_offs)
1.17 @@ -684,10 +684,13 @@
1.18 static int offset = -1;
1.19 if (offset == -1)
1.20 {
1.21 - offset = GetTypeDescOffs(
1.22 - gamehelpers->FindInDataMap(gamehelpers->GetDataMap(pEntity),
1.23 - "m_iClassname")
1.24 - );
1.25 + sm_datatable_info_t info;
1.26 + if (!gamehelpers->FindDataMapInfo(gamehelpers->GetDataMap(pEntity), "m_iClassname", &info))
1.27 + {
1.28 + return -1;
1.29 + }
1.30 +
1.31 + offset = info.actual_offset;
1.32 }
1.33
1.34 string_t s;