Skip to content

Commit c6ac506

Browse files
committed
Resolve UtlSymLargeId_t differences (2)
1 parent c806485 commit c6ac506

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/tier1/utlsymbollarge.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,13 @@ inline CUtlSymbolLarge CUtlSymbolTableLargeBase< CASEINSENSITIVE, PAGE_SIZE, MUT
281281
template < bool CASEINSENSITIVE, size_t PAGE_SIZE, class MUTEX_TYPE >
282282
inline const char* CUtlSymbolTableLargeBase< CASEINSENSITIVE, PAGE_SIZE, MUTEX_TYPE >::String( UtlSymLargeElm_t elem ) const
283283
{
284-
return ( const char* )m_MemBlockAllocator.GetBlock( m_MemBlocks[ id ] );
284+
return ( const char* )m_MemBlockAllocator.GetBlock( m_MemBlocks[ elem ] );
285285
}
286286

287287
template < bool CASEINSENSITIVE, size_t PAGE_SIZE, class MUTEX_TYPE >
288288
inline unsigned int CUtlSymbolTableLargeBase< CASEINSENSITIVE, PAGE_SIZE, MUTEX_TYPE >::Hash( UtlSymLargeElm_t elem ) const
289289
{
290-
CUtlSymbolTableLargeBaseTreeEntry_t *entry = (CUtlSymbolTableLargeBaseTreeEntry_t *)m_MemBlockAllocator.GetBlock( m_MemBlocks[ id ] - sizeof( LargeSymbolTableHashDecoration_t ) );
290+
CUtlSymbolTableLargeBaseTreeEntry_t *entry = (CUtlSymbolTableLargeBaseTreeEntry_t *)m_MemBlockAllocator.GetBlock( m_MemBlocks[ elem ] - sizeof( LargeSymbolTableHashDecoration_t ) );
291291

292292
return entry->Hash();
293293
}

0 commit comments

Comments
 (0)