From 5200aefa017ac05a4d82391284f9e15f72322d77 Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Wed, 7 Sep 2022 09:06:30 -0400 Subject: [PATCH] Access _Clocptr statically, instead of through an instance --- stl/src/locale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stl/src/locale.cpp b/stl/src/locale.cpp index e8802cf8c07..478278af46d 100644 --- a/stl/src/locale.cpp +++ b/stl/src/locale.cpp @@ -79,7 +79,7 @@ locale::_Locimp* __CLRCALL_OR_CDECL locale::_Locimp::_Makeloc( void __CLRCALL_PURE_OR_CDECL locale::_Locimp::_Locimp_ctor( locale::_Locimp* _This, const locale::_Locimp& imp) { // construct a _Locimp from a copy - if (&imp == _This->_Clocptr) { + if (&imp == _Clocptr) { _BEGIN_LOCINFO(_Lobj) _Makeloc(_Lobj, locale::all, _This, nullptr); _END_LOCINFO()