pr #112: move mapRect from global scope

This commit is contained in:
Callow 2022-06-15 12:36:45 +03:00 committed by GitHub
parent 6e15ba440c
commit e61d64ab29

View File

@ -18,7 +18,6 @@
namespace cheat::feature namespace cheat::feature
{ {
app::Rect mapRect = {};
InteractiveMap::InteractiveMap() : Feature(), InteractiveMap::InteractiveMap() : Feature(),
NFEX(f_Enabled, "Interactive map", "m_InteractiveMap", "InteractiveMap", false, false), NFEX(f_Enabled, "Interactive map", "m_InteractiveMap", "InteractiveMap", false, false),
@ -1545,6 +1544,7 @@ namespace cheat::feature
static ImCircle GetMinimapCircle() static ImCircle GetMinimapCircle()
{ {
static app::Rect mapRect = {};
if (_monoMiniMap == nullptr) if (_monoMiniMap == nullptr)
return {}; return {};