From 0087e6d734de0e1af17a93003084eb0605cd9410 Mon Sep 17 00:00:00 2001 From: samisalreadytaken <46823719+samisalreadytaken@users.noreply.github.com> Date: Sun, 30 Aug 2020 15:58:07 +0300 Subject: [PATCH] Fix string pool dump --- sp/src/game/shared/gamestringpool.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/sp/src/game/shared/gamestringpool.cpp b/sp/src/game/shared/gamestringpool.cpp index 59670e94..a0544cb7 100644 --- a/sp/src/game/shared/gamestringpool.cpp +++ b/sp/src/game/shared/gamestringpool.cpp @@ -55,22 +55,12 @@ public: void Dump( void ) { - CUtlVector strings( 0, m_Strings.Count() ); for (UtlHashHandle_t i = m_Strings.FirstHandle(); i != m_Strings.InvalidHandle(); i = m_Strings.NextHandle(i)) { - strings.AddToTail( strings[i] ); + DevMsg(" %d (0x%p) : %s\n", i, m_Strings[i], m_Strings[i]); } - struct _Local { - static int __cdecl F(const char * const *a, const char * const *b) { return strcmp(*a, *b); } - }; - strings.Sort( _Local::F ); - - for ( int i = 0; i < strings.Count(); ++i ) - { - DevMsg( " %d (0x%p) : %s\n", i, strings[i], strings[i] ); - } - DevMsg( "\n" ); - DevMsg( "Size: %d items\n", strings.Count() ); + DevMsg("\n"); + DevMsg("Size: %d items\n", m_Strings.Count()); } const char *Find(const char *string)