We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe9f327 commit c1b0bf8Copy full SHA for c1b0bf8
src/sdk/schema.cpp
@@ -195,8 +195,9 @@ void CSDKSchema::SetStateChanged(void* pEntity, uint64_t uHash)
195
auto logger = g_ifaceService.FetchInterface<ILogger>(LOGGER_INTERFACE_VERSION);
196
197
auto uncheckedNetworkVar = reinterpret_cast<NetworkVar*>(pEntity);
198
- if (inlineNetworkVarVtbs.contains(uncheckedNetworkVar->pVtable())) {
199
- auto index = inlineNetworkVarVtbs[uncheckedNetworkVar->pVtable()];
+ auto it = inlineNetworkVarVtbs.find(uncheckedNetworkVar->pVtable());
+ if (it != inlineNetworkVarVtbs.end()) {
200
+ auto index = it->second;
201
uncheckedNetworkVar->StateChanged(index, NetworkStateChangedData(fieldInfo.m_uOffset));
202
return;
203
}
0 commit comments