mirror of https://github.com/AxioDL/metaforce.git
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:
parent
9c2fd54546
commit
04cc300019
|
@ -1,5 +1,5 @@
|
|||
#include "CGuiWidgetDrawParms.hpp"
|
||||
|
||||
namespace urde {
|
||||
CGuiWidgetDrawParms CGuiWidgetDrawParms::Default = {};
|
||||
const CGuiWidgetDrawParms CGuiWidgetDrawParms::Default = {};
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ struct CGuiWidgetDrawParms {
|
|||
CGuiWidgetDrawParms() = default;
|
||||
CGuiWidgetDrawParms(float alphaMod, const zeus::CVector3f& cameraOff)
|
||||
: x0_alphaMod(alphaMod), x4_cameraOffset(cameraOff) {}
|
||||
static CGuiWidgetDrawParms Default;
|
||||
static const CGuiWidgetDrawParms Default;
|
||||
};
|
||||
|
||||
} // namespace urde
|
||||
|
|
Loading…
Reference in New Issue