From fd4133485abc771ab36236c9d563926cd735fc3b Mon Sep 17 00:00:00 2001 From: Blixibon Date: Wed, 26 Oct 2022 13:38:28 -0500 Subject: [PATCH] Fix uninitialized variable in math_clamp --- sp/src/game/server/logicentities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sp/src/game/server/logicentities.cpp b/sp/src/game/server/logicentities.cpp index 2197baff..aa838a35 100644 --- a/sp/src/game/server/logicentities.cpp +++ b/sp/src/game/server/logicentities.cpp @@ -4385,7 +4385,7 @@ void CMathClamp::ClampValue(variant_t var, inputdata_t *inputdata) { // Don't convert up here in case of invalid type - int nBounds; + int nBounds = 0; switch (var.FieldType()) {