From 8563376c238bc4f7e77381e517bd57dadfbaabc9 Mon Sep 17 00:00:00 2001 From: Nyano <20940500@mail.szpu.edu.cn> Date: Thu, 21 Nov 2024 19:01:11 +0800 Subject: [PATCH] Fix CUtlSortVector::QuickSort issues on windows (#283) --- public/tier1/UtlSortVector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/tier1/UtlSortVector.h b/public/tier1/UtlSortVector.h index 15f80402..0a1ad9f3 100644 --- a/public/tier1/UtlSortVector.h +++ b/public/tier1/UtlSortVector.h @@ -177,7 +177,7 @@ void CUtlSortVector::QuickSort( LessFunc& less, int nLower, int nUp ctx.m_pLessContext = m_pLessContext; ctx.m_pLessFunc = &less; - qsort_s( Base(), Count(), sizeof(T), (QSortCompareFunc_t)&CUtlSortVector::CompareHelper, &ctx ); + qsort_s( this->Base(), this->Count(), sizeof(T), (QSortCompareFunc_t)&CUtlSortVector::CompareHelper, &ctx ); } #else typedef int (__cdecl *QSortCompareFunc_t)( const void *, const void *);