mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-03-17 08:21:28 +00:00
- reverbedit fix: third time's a charm?
This commit is contained in:
parent
753ac678e0
commit
f60d5052f0
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue