From f60d5052f0732dd0f52d4dc01b6a18acd036191a Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Wed, 24 Jan 2018 15:36:54 -0500 Subject: [PATCH] - reverbedit fix: third time's a charm? --- src/s_environment.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/s_environment.cpp b/src/s_environment.cpp index 4d83dd2d4..ac268bc5f 100644 --- a/src/s_environment.cpp +++ b/src/s_environment.cpp @@ -903,9 +903,9 @@ DEFINE_ACTION_FUNCTION(DReverbEdit, GetValue) { PARAM_PROLOGUE; PARAM_INT(index); - float v; + float v = 0; - if (index >= 0 && index < countof(ReverbFields)) + if (index >= 0 && index < (int)countof(ReverbFields)) { auto rev = &ReverbFields[index]; if (rev->Int != nullptr) @@ -931,7 +931,7 @@ DEFINE_ACTION_FUNCTION(DReverbEdit, SetValue) PARAM_INT(index); PARAM_FLOAT(v); - if (index >= 0 && index < countof(ReverbFields)) + if (index >= 0 && index < (int)countof(ReverbFields)) { auto rev = &ReverbFields[index]; if (rev->Int != nullptr)