This should fix options menu crashes. Adding casts to the MOVE() macros
didn't make it work, since there was no cast overload to bool&, etc; it just forced the (non-POD) type to that type, which resulted in the struct being clobbered.
This commit is contained in:
@@ -63,7 +63,12 @@ public:
|
||||
m_currentValue = m_defaultValue;
|
||||
}
|
||||
|
||||
operator T () const
|
||||
operator T& ()
|
||||
{
|
||||
return m_currentValue;
|
||||
}
|
||||
|
||||
operator const T () const
|
||||
{
|
||||
return m_currentValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user