From ff273cc3b9d20b3a9871f94ad9168218d86b36e3 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 7 May 2022 00:08:38 -0500 Subject: [PATCH] Masochism Volatile Compiler --- src/gui/gui.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/gui.h b/src/gui/gui.h index bb045d257..c41965330 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -737,8 +737,6 @@ struct FurnaceGUIMacroDesc { FurnaceGUIMacroDesc(const char* name, DivInstrumentMacro* m, int macroMin, int macroMax, float macroHeight, ImVec4 col=ImVec4(1.0f,1.0f,1.0f,1.0f), bool block=false, const char* mName=NULL, String (*hf)(int,float)=NULL, bool bitfield=false, const char** bfVal=NULL, unsigned int bitOff=0): macro(m), - min(macroMin), - max(macroMax), height(macroHeight), displayName(name), bitfieldBits(bfVal), @@ -748,6 +746,9 @@ struct FurnaceGUIMacroDesc { isBitfield(bitfield), blockMode(block), hoverFunc(hf) { + // MSVC -> hell + this->min=macroMin; + this->max=macroMax; } };