Skip to content

Commit 125ac92

Browse files
committed
Accidentally used old definition
1 parent 8cd2646 commit 125ac92

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/cs2_sdk/cchecktransmitinfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#pragma once
2121
#include "bitvec.h"
2222
#include "const.h"
23+
#include "gamesystems/spawngroup_manager.h"
2324

2425
// https://github.com/Wend4r/sourcesdk/blob/d84ab2a1944cc5f6e57256c1c052c272761908e2/public/iservernetworkable.h#L45
2526
class CCheckTransmitInfoExtended
@@ -30,7 +31,7 @@ class CCheckTransmitInfoExtended
3031
CBitVec<MAX_EDICTS>* m_pUnkBitVec2;
3132
CBitVec<MAX_EDICTS>* m_pUnkBitVec3;
3233
CBitVec<MAX_EDICTS>* m_pTransmitAlways;
33-
CUtlVector<int> m_vecUnkSpawnGroups;
34+
CUtlVector<SpawnGroupHandle_t> m_vecSpawnGroups;
3435

3536
// NOTE: This is incomplete
3637
};

src/cs2fixes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ void CS2Fixes::Hook_CheckTransmit(CCheckTransmitInfo** ppInfoList, int infoCount
993993
for (int i = 0; i < infoCount; i++)
994994
{
995995
auto& pInfo = ppInfoList[i];
996-
int iSpawnGroupCount = ((CCheckTransmitInfoExtended*&)pInfo)->m_vecUnkSpawnGroups.Count();
996+
int iSpawnGroupCount = ((CCheckTransmitInfoExtended*&)pInfo)->m_vecSpawnGroups.Count();
997997

998998
// the offset happens to have a player index here,
999999
// though this is probably part of the client class that contains the CCheckTransmitInfo

0 commit comments

Comments
 (0)