From 77f41faac5c418d1270b4a59e9f2b656b5b58c2f Mon Sep 17 00:00:00 2001 From: Nick Hastings Date: Sun, 5 May 2024 10:57:23 -0400 Subject: [PATCH] Fix variant_t initialization order --- game/server/variant_t.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/server/variant_t.h b/game/server/variant_t.h index 1f828e67..1d2c87aa 100644 --- a/game/server/variant_t.h +++ b/game/server/variant_t.h @@ -39,7 +39,7 @@ class variant_t public: // 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 const char *String( void ) const { return( fieldType == FIELD_STRING ) ? STRING(iszVal) : ToString(); }