From 12a720f1de2d32594bedf5e11adcd6cbdeb7b3fa Mon Sep 17 00:00:00 2001 From: Fletcher Dunn Date: Fri, 28 Aug 2020 16:49:51 -0700 Subject: [PATCH] Add missing const --- src/public/tier1/utlhashmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/tier1/utlhashmap.h b/src/public/tier1/utlhashmap.h index 85314a6..292f4e8 100644 --- a/src/public/tier1/utlhashmap.h +++ b/src/public/tier1/utlhashmap.h @@ -311,7 +311,7 @@ public: inline ItemRef( const CUtlHashMap< K, T, L, H > &map, int idx ) : m_node( const_cast< Node_t &>( map.m_memNodes[idx] ) ), m_idx(idx) {} ItemRef( const ItemRef &x ) = default; inline int Index() const { return m_idx; } - inline const KeyType_t &Key() { return m_node.m_key; } + inline const KeyType_t &Key() const { return m_node.m_key; } inline const ElemType_t &Element() const { return m_node.m_elem; } }; struct MutableItemRef : ItemRef