mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Update networkvar.cpp
This commit is contained in:
parent
0e12551158
commit
cb2bdfe2a2
@ -93,9 +93,7 @@ int CNetVarTables::GetOffset(const string& tableName, const string& varName)
|
||||
for (const auto& table : vTables)
|
||||
{
|
||||
if (table.m_svNetTableName.compare(tableName) == 0)
|
||||
{
|
||||
return GetOffset(table, varName);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
@ -114,9 +112,7 @@ int CNetVarTables::GetOffset(const Table& table, const string& varName)
|
||||
{
|
||||
string svVarName = child.m_pProp->m_pVarName;
|
||||
if (svVarName.compare(varName) == 0)
|
||||
{
|
||||
return table.m_Offset + child.m_Offset;
|
||||
}
|
||||
}
|
||||
|
||||
// Try to loop through sub tables.
|
||||
|
Loading…
x
Reference in New Issue
Block a user