mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
Fix variant_t initialization order
This commit is contained in:
parent
c4f54cf908
commit
77f41faac5
@ -39,7 +39,7 @@ class variant_t
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
// constructor
|
// constructor
|
||||||
variant_t() : fieldType(FIELD_VOID), iVal(0) {}
|
variant_t() : iVal(0), fieldType(FIELD_VOID) {}
|
||||||
|
|
||||||
inline bool Bool( void ) const { return( fieldType == FIELD_BOOLEAN ) ? bVal : false; }
|
inline bool Bool( void ) const { return( fieldType == FIELD_BOOLEAN ) ? bVal : false; }
|
||||||
inline const char *String( void ) const { return( fieldType == FIELD_STRING ) ? STRING(iszVal) : ToString(); }
|
inline const char *String( void ) const { return( fieldType == FIELD_STRING ) ? STRING(iszVal) : ToString(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user