From c0fbb0d1d4e99839cf3cd2817c8ceb41e8955d69 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 35ef97d1..86016d0c 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(); }