Skip to content

Commit 101e385

Browse files
committed
[Steam only] Fix validation issues
We won't ever compile this code with DBGFLAG_VALIDATE so it doesn't matter here. P4:6571406
1 parent e9275be commit 101e385

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/steamnetworkingsockets/steamnetworkingsockets_thinker.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,13 @@ void IThinker::Thinker_ProcessThinkers()
246246
#ifdef DBGFLAG_VALIDATE
247247
void Thinker_ValidateStatics( CValidator &validator )
248248
{
249-
ValidateObj( s_queueThinkers );
249+
ValidateRecursive( s_queueThinkers );
250250
}
251+
252+
void IThinker::Validate( CValidator &validator, const char *pchName )
253+
{
254+
}
255+
251256
#endif
252257

253258
} // namespace SteamNetworkingSocketsLib

src/steamnetworkingsockets/steamnetworkingsockets_thinker.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ class IThinker
7676

7777
void InternalSetNextThinkTime( SteamNetworkingMicroseconds usecTargetThinkTime );
7878
void InternalEnsureMinThinkTime( SteamNetworkingMicroseconds usecTargetThinkTime );
79+
public:
80+
#ifdef DBGFLAG_VALIDATE
81+
virtual void Validate( CValidator &validator, const char *pchName );
82+
#endif
7983
};
8084
template <typename L>
8185
class ILockableThinker : public IThinker

0 commit comments

Comments
 (0)