CGuiWidgetDrawParms: Mark Default instance as const

This isn't ever modified, so it can be made const to prevent
unintentional modification (and allow it to be placed within the RO
segment).
This commit is contained in:
Lioncash 2019-09-19 21:46:08 -04:00
parent 9c2fd54546
commit 04cc300019
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#include "CGuiWidgetDrawParms.hpp" #include "CGuiWidgetDrawParms.hpp"
namespace urde { namespace urde {
CGuiWidgetDrawParms CGuiWidgetDrawParms::Default = {}; const CGuiWidgetDrawParms CGuiWidgetDrawParms::Default = {};
} }

View File

@ -11,7 +11,7 @@ struct CGuiWidgetDrawParms {
CGuiWidgetDrawParms() = default; CGuiWidgetDrawParms() = default;
CGuiWidgetDrawParms(float alphaMod, const zeus::CVector3f& cameraOff) CGuiWidgetDrawParms(float alphaMod, const zeus::CVector3f& cameraOff)
: x0_alphaMod(alphaMod), x4_cameraOffset(cameraOff) {} : x0_alphaMod(alphaMod), x4_cameraOffset(cameraOff) {}
static CGuiWidgetDrawParms Default; static const CGuiWidgetDrawParms Default;
}; };
} // namespace urde } // namespace urde