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:
Glenn Maynard
2004-12-07 08:28:24 +00:00
parent 295ae2d961
commit 8e57c4ca76
+6 -1
View File
@@ -63,7 +63,12 @@ public:
m_currentValue = m_defaultValue;
}
operator T () const
operator T& ()
{
return m_currentValue;
}
operator const T () const
{
return m_currentValue;
}